OSDN Git Service

Silence a warning when compiling aviobuf.c
authorEli Friedman <eli.friedman@gmail.com>
Mon, 5 Jul 2010 09:11:45 +0000 (09:11 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Mon, 5 Jul 2010 09:11:45 +0000 (09:11 +0000)
Patch by Eli Friedman, eli d friedman a gmail

Originally committed as revision 24055 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/aviobuf.c

index df4ea60..d97ffd5 100644 (file)
@@ -605,8 +605,7 @@ static int url_resetbuf(ByteIOContext *s, int flags)
 #endif
 {
 #if LIBAVFORMAT_VERSION_MAJOR < 53
-    URLContext *h = s->opaque;
-    if ((flags & URL_RDWR) || (h && h->flags != flags && !h->flags & URL_RDWR))
+    if (flags & URL_RDWR)
         return AVERROR(EINVAL);
 #else
     assert(flags == URL_WRONLY || flags == URL_RDONLY);