diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2010-07-05 09:11:45 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-07-05 09:11:45 +0000 |
commit | 6fa197e2778cef3c41c7afe8deae5b664bdd39df (patch) | |
tree | 5f1f9203a8a0dfe52eda7dd342ef7e8ff178aa10 /libavformat | |
parent | 0712c230ae8b15f920e877e680e0fa6e856e8006 (diff) | |
download | ffmpeg-6fa197e2778cef3c41c7afe8deae5b664bdd39df.tar.gz |
Silence a warning when compiling aviobuf.c
Patch by Eli Friedman, eli d friedman a gmail
Originally committed as revision 24055 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/aviobuf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index df4ea60227..d97ffd5e62 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -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); |