Revision 6fa197e2

View differences:

libavformat/aviobuf.c
605 605
#endif
606 606
{
607 607
#if LIBAVFORMAT_VERSION_MAJOR < 53
608
    URLContext *h = s->opaque;
609
    if ((flags & URL_RDWR) || (h && h->flags != flags && !h->flags & URL_RDWR))
608
    if (flags & URL_RDWR)
610 609
        return AVERROR(EINVAL);
611 610
#else
612 611
    assert(flags == URL_WRONLY || flags == URL_RDONLY);

Also available in: Unified diff