You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02: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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user