]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/aviobuf.c
Merge commit '58a840e21577a2168843487a98cb2cea44b5a94a'
[ffmpeg] / libavformat / aviobuf.c
index 537c11f6b46ddae0602ad3aeb6e8c2db4f819896..7de59f10f34e357dfca4add590c2189c9559ea2e 100644 (file)
@@ -778,7 +778,9 @@ int ffio_fdopen(AVIOContext **s, URLContext *h)
         return AVERROR(ENOMEM);
 
     *s = avio_alloc_context(buffer, buffer_size, h->flags & AVIO_FLAG_WRITE, h,
-                            (void*)ffurl_read, (void*)ffurl_write, (void*)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);