Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-18 16:08:26 +0300
committerAnton Khirnov <anton@khirnov.net>2022-08-22 12:36:43 +0300
commitf23e3ce8589629623db978ad70967eb37f7fac35 (patch)
tree4b3fd2e018eba475147712acf68f2fff41d4f4db /fftools/ffmpeg.h
parent14726571ddbf5981a1eeadf3c06eeb44b89589ae (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.h')
-rw-r--r--fftools/ffmpeg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
index 44cc23fa84..921e579c32 100644
--- a/fftools/ffmpeg.h
+++ b/fftools/ffmpeg.h
@@ -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