summaryrefslogtreecommitdiff
path: root/libavformat/avio.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2015-02-10 16:02:30 +0100
committerDiego Biurrun <diego@biurrun.de>2015-03-11 23:53:13 +0100
commitb97f427fb56bdbf7de8e2d4b72d01114aa6eceda (patch)
tree762989f66a785b247066957407fac9148e8f4ec2 /libavformat/avio.c
parent9c8074050745184a61059ad56045ad711299e33d (diff)
downloadffmpeg-b97f427fb56bdbf7de8e2d4b72d01114aa6eceda.tar.gz
lavf: Explicitly convert types at function pointer assignment
This fixes a number of "assignment from incompatible pointer type" warnings.
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r--libavformat/avio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index f68994cef1..ff740a28b7 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -281,7 +281,9 @@ int ffurl_write(URLContext *h, const unsigned char *buf, int size)
if (h->max_packet_size && size > h->max_packet_size)
return AVERROR(EIO);
- return retry_transfer_wrapper(h, buf, size, size, h->prot->url_write);
+ return retry_transfer_wrapper(h, buf, size, size,
+ (int (*)(struct URLContext *, uint8_t *, int))
+ h->prot->url_write);
}
int64_t ffurl_seek(URLContext *h, int64_t pos, int whence)