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:
Anton Khirnov
2022-08-18 15:08:26 +02:00
parent 14726571dd
commit f23e3ce858
3 changed files with 5 additions and 1 deletions

View File

@@ -334,6 +334,8 @@ typedef struct InputStream {
AVFrame *decoded_frame;
AVPacket *pkt;
AVRational framerate_guessed;
int64_t prev_pkt_pts;
int64_t start; /* time when read started */
/* predicted dts of the next packet read for this stream or (when there are