[FFmpeg-devel] [PATCH] Fix warning in url_resetbuf (in aviobuf.c)

Eli Friedman eli.friedman
Sun Jun 27 22:59:15 CEST 2010


Patch attached; note that there isn't any functionality change because
URL_RDWR is 2, which makes the entire RHS of the || collapse to 0.

-Eli
-------------- next part --------------
Index: libavformat/aviobuf.c
===================================================================
--- libavformat/aviobuf.c	(revision 23833)
+++ libavformat/aviobuf.c	(working copy)
@@ -606,7 +606,7 @@
 {
 #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);



More information about the ffmpeg-devel mailing list