diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-08-18 15:08:26 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-08-22 11:36:43 +0200 |
commit | f23e3ce8589629623db978ad70967eb37f7fac35 (patch) | |
tree | 4b3fd2e018eba475147712acf68f2fff41d4f4db /fftools/ffmpeg_opt.c | |
parent | 14726571ddbf5981a1eeadf3c06eeb44b89589ae (diff) |
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.
Diffstat (limited to 'fftools/ffmpeg_opt.c')
-rw-r--r-- | fftools/ffmpeg_opt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 30ca5cd609..1ba7950bc1 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -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; |