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
This commit is contained in:
parent
0712c230ae
commit
6fa197e277
@ -605,8 +605,7 @@ static int url_resetbuf(ByteIOContext *s, int flags)
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#if LIBAVFORMAT_VERSION_MAJOR < 53
|
#if LIBAVFORMAT_VERSION_MAJOR < 53
|
||||||
URLContext *h = s->opaque;
|
if (flags & URL_RDWR)
|
||||||
if ((flags & URL_RDWR) || (h && h->flags != flags && !h->flags & URL_RDWR))
|
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
#else
|
#else
|
||||||
assert(flags == URL_WRONLY || flags == URL_RDONLY);
|
assert(flags == URL_WRONLY || flags == URL_RDONLY);
|
||||||
|
Loading…
Reference in New Issue
Block a user