Browse Source

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
tags/n0.8
Eli Friedman Carl Eugen Hoyos 15 years ago
parent
commit
6fa197e277
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/aviobuf.c

+ 1
- 2
libavformat/aviobuf.c View 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);


Loading…
Cancel
Save