changeset 6233:2842c3ff0e37 libavformat

Silence a warning when compiling aviobuf.c Patch by Eli Friedman, eli d friedman a gmail
author cehoyos
date Mon, 05 Jul 2010 09:11:45 +0000
parents 6e1e60b6edec
children 0287312dda71
files aviobuf.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/aviobuf.c	Mon Jul 05 04:07:50 2010 +0000
+++ b/aviobuf.c	Mon Jul 05 09:11:45 2010 +0000
@@ -605,8 +605,7 @@
 #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);