mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 02:20:07 +01:00
lavf: dont open a decoder at the top of find_stream_info before probing has finished
It could open the wrong decoder. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -2557,7 +2557,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
|||||||
: &thread_opt);
|
: &thread_opt);
|
||||||
|
|
||||||
//try to just open decoders, in case this is enough to get parameters
|
//try to just open decoders, in case this is enough to get parameters
|
||||||
if (!has_codec_parameters(st, NULL)) {
|
if (!has_codec_parameters(st, NULL) && st->request_probe <= 0) {
|
||||||
if (codec && !st->codec->codec)
|
if (codec && !st->codec->codec)
|
||||||
avcodec_open2(st->codec, codec, options ? &options[i]
|
avcodec_open2(st->codec, codec, options ? &options[i]
|
||||||
: &thread_opt);
|
: &thread_opt);
|
||||||
|
|||||||
Reference in New Issue
Block a user