aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-08-06 03:31:58 +0200
committerLuca Barbato <lu_zero@gentoo.org>2014-08-09 21:39:36 +0200
commit8c6f430291374cf6d2cfb85cdbb809803b5a7d83 (patch)
tree058833ad61d6e62bc0d6244d6b20d48aaca4ac8e
parent9325d88eba8038b3e2a4485e473a018410379e2d (diff)
downloadffmpeg-8c6f430291374cf6d2cfb85cdbb809803b5a7d83.tar.gz
mpeg: Suppress a compiler warning on callback type
-rw-r--r--libavformat/mpegenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c
index d020c9dd12..1ba7647e80 100644
--- a/libavformat/mpegenc.c
+++ b/libavformat/mpegenc.c
@@ -850,7 +850,8 @@ static int flush_packet(AVFormatContext *ctx, int stream_index,
/* output data */
assert(payload_size - stuffing_size <= av_fifo_size(stream->fifo));
av_fifo_generic_read(stream->fifo, ctx->pb,
- payload_size - stuffing_size, &avio_write);
+ payload_size - stuffing_size,
+ (void (*)(void*, void*, int))avio_write);
stream->bytes_to_iframe -= payload_size - stuffing_size;
} else {
payload_size =