diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-03-31 16:34:29 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-04-13 12:07:54 +0200 |
commit | 662364b2efb3540c5b4a2b140601fab7a9c90367 (patch) | |
tree | 49fb516db3f254fdababfff27ddcd5da6f01242f /fftools/ffmpeg.h | |
parent | 86e1c0303cd6c33d8ff833e8c2fc84163baede06 (diff) | |
download | ffmpeg-662364b2efb3540c5b4a2b140601fab7a9c90367.tar.gz |
fftools/ffmpeg: stop using OutputStream.frame_number for streamcopy
This field is currently used by checks
- skipping packets before the first keyframe
- skipping packets before start time
to test whether any packets have been output already. But since
frame_number is incremented after the bitstream filters are applied
(which may involve delay), this use is incorrect. The keyframe check
works around this by adding an extra flag, the start-time check does
not.
Simplify both checks by replacing the seen_kf flag with a flag tracking
whether any packets have been output by do_streamcopy().
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r-- | fftools/ffmpeg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 1e14bf9fa9..04369df139 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -536,7 +536,7 @@ typedef struct OutputStream { int inputs_done; const char *attachment_filename; - int seen_kf; + int streamcopy_started; int copy_initial_nonkeyframes; int copy_prior_start; char *disposition; |