diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-11-17 12:55:47 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-11-28 10:28:14 +0100 |
commit | efe442362794abe3cef43eea6b4071919b0b2866 (patch) | |
tree | a1631c83ce5f7292a4a8a8c4530a14f219db4b82 /fftools/ffmpeg.h | |
parent | b1143330c8db6e738312245414656a001cd007a4 (diff) | |
download | ffmpeg-efe442362794abe3cef43eea6b4071919b0b2866.tar.gz |
fftools/ffmpeg: store forced keyframe pts in AV_TIME_BASE_Q
Rather than the encoder timebase. Since the times are parsed as
microseconds, this will not reduce precision, except possibly when
chapter times are used and the chapter timebase happens to be better
aligned with the encoder timebase, which is unlikely.
This will allow parsing the keyframe times earlier (before encoder
timebase is known) in future commits.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r-- | fftools/ffmpeg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index db1f00b259..f5d51b90ec 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -492,6 +492,7 @@ typedef struct KeyframeForceCtx { int64_t ref_pts; + // timestamps of the forced keyframes, in AV_TIME_BASE_Q int64_t *pts; int nb_pts; int index; |