Revision 6b35a795

View differences:

libavformat/utils.c
2484 2484
        if (st->disposition & (AV_DISPOSITION_HEARING_IMPAIRED|AV_DISPOSITION_VISUAL_IMPAIRED))
2485 2485
            continue;
2486 2486
        if (decoder_ret) {
2487
            decoder = avcodec_find_decoder(ic->streams[i]->codec->codec_id);
2487
            decoder = avcodec_find_decoder(st->codec->codec_id);
2488 2488
            if (!decoder) {
2489 2489
                if (ret < 0)
2490 2490
                    ret = AVERROR_DECODER_NOT_FOUND;

Also available in: Unified diff