[FFmpeg-cvslog] avio: Fix "warning: initialization from incompatible pointer type"

Michael Niedermayer git at videolan.org
Mon Feb 6 02:21:31 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Feb  5 23:21:51 2012 +0100| [66792717008b8266e2f8b1c33d02f80e309ae400] | committer: Michael Niedermayer

avio: Fix "warning: initialization from incompatible pointer type"

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=66792717008b8266e2f8b1c33d02f80e309ae400
---

 libavformat/avio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 8305443..afaa7e6 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -86,7 +86,7 @@ const AVClass ffurl_context_class = {
 
 const char *avio_enum_protocols(void **opaque, int output)
 {
-    URLProtocol **p = opaque;
+    URLProtocol **p = (URLProtocol **)opaque;
     *p = ffurl_protocol_next(*p);
     if (!*p) return NULL;
     if ((output && (*p)->url_write) || (!output && (*p)->url_read))



More information about the ffmpeg-cvslog mailing list