mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-03 13:24:05 +00:00
udp: Fix a compilation warning
This fixes this compilation warning, by making endptr a non-const pointer, as required by strtol: In function ‘udp_open’: warning: passing argument 2 of ‘strtol’ from incompatible pointer type Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
705b21a06e
commit
5d62d0b114
@ -328,7 +328,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
|
||||
p = strchr(uri, '?');
|
||||
if (p) {
|
||||
if (av_find_info_tag(buf, sizeof(buf), "reuse", p)) {
|
||||
const char *endptr=NULL;
|
||||
char *endptr = NULL;
|
||||
s->reuse_socket = strtol(buf, &endptr, 10);
|
||||
/* assume if no digits were found it is a request to enable it */
|
||||
if (buf == endptr)
|
||||
|
Loading…
Reference in New Issue
Block a user