mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-15 19:40:07 +01:00
fftools/ffmpeg: call av_guess_frame_rate() when opening the file
It is currently called when configuring the filter, which races with the demuxer thread.
This commit is contained in:
@@ -1065,6 +1065,8 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
|
||||
ist->top_field_first = -1;
|
||||
MATCH_PER_STREAM_OPT(top_field_first, i, ist->top_field_first, ic, st);
|
||||
|
||||
ist->framerate_guessed = av_guess_frame_rate(ic, st, NULL);
|
||||
|
||||
break;
|
||||
case AVMEDIA_TYPE_AUDIO:
|
||||
ist->guess_layout_max = INT_MAX;
|
||||
|
||||
Reference in New Issue
Block a user