# HG changeset patch # User cehoyos # Date 1278321105 0 # Node ID 2842c3ff0e37a069a4d28ab814fbfedf63fb90b3 # Parent 6e1e60b6edece064d5fa7b42834c9af73e4846e8 Silence a warning when compiling aviobuf.c Patch by Eli Friedman, eli d friedman a gmail diff -r 6e1e60b6edec -r 2842c3ff0e37 aviobuf.c --- 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);