diff options
author | Diego Biurrun <diego@biurrun.de> | 2015-02-10 16:02:30 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2015-03-11 23:53:13 +0100 |
commit | b97f427fb56bdbf7de8e2d4b72d01114aa6eceda (patch) | |
tree | 762989f66a785b247066957407fac9148e8f4ec2 /libavformat/aviobuf.c | |
parent | 9c8074050745184a61059ad56045ad711299e33d (diff) | |
download | ffmpeg-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/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index fb941c6e62..59f807cbd3 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -692,7 +692,9 @@ int ffio_fdopen(AVIOContext **s, URLContext *h) return AVERROR(ENOMEM); *s = avio_alloc_context(buffer, buffer_size, h->flags & AVIO_FLAG_WRITE, h, - ffurl_read, ffurl_write, ffurl_seek); + (int (*)(void *, uint8_t *, int)) ffurl_read, + (int (*)(void *, uint8_t *, int)) ffurl_write, + (int64_t (*)(void *, int64_t, int)) ffurl_seek); if (!*s) { av_free(buffer); return AVERROR(ENOMEM); |