Revision 2898526d libavformat/utils.c

View differences:

libavformat/utils.c
559 559
        if (buf_size > 0) {
560 560
            url_setbufsize(pb, buf_size);
561 561
        }
562
        if ((err = ff_probe_input_buffer(&pb, &fmt, filename, logctx, 0, logctx ? (*ic_ptr)->probesize : 0)) < 0) {
562
        if (!fmt && (err = ff_probe_input_buffer(&pb, &fmt, filename, logctx, 0, logctx ? (*ic_ptr)->probesize : 0)) < 0) {
563 563
            goto fail;
564 564
        }
565 565
    }

Also available in: Unified diff