Commit 6b35a795 authored by Marton Balint's avatar Marton Balint Committed by Anton Khirnov
Browse files

lavf: fix av_find_best_stream when decoder_ret is given and using a related stream.

Yet another fix for the code originally designed for use without related_stream.
Signed-off-by: default avatarMichael Niedermayer <>
Signed-off-by: default avatarAnton Khirnov <>
parent 5da116a3
......@@ -2484,7 +2484,7 @@ int av_find_best_stream(AVFormatContext *ic,
if (decoder_ret) {
decoder = avcodec_find_decoder(ic->streams[i]->codec->codec_id);
decoder = avcodec_find_decoder(st->codec->codec_id);
if (!decoder) {
if (ret < 0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment