diff options
author | James Almer <jamrial@gmail.com> | 2022-02-14 14:07:01 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-02-28 12:10:51 -0300 |
commit | afe485ee6b3bbcd4b0e106eb9fc4dcf4846db1b8 (patch) | |
tree | 32cd46c17fc1afe94dac7f6d5576e3f27468bb75 /fftools/ffmpeg.h | |
parent | 4f21a9ae6b86cc481af4f92249bef877bdf64fdc (diff) |
ffmpeg: flush delayed frames in codec copy scenarios
Bitstream filters inserted between the input and output were never drained,
resulting in packets being lost if the bsf had any buffered.
Signed-off-by: James Almer <jamrial@gmail.com>
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 81ec4d5970..1b8bbace3f 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -307,6 +307,7 @@ typedef struct InputStream { int decoding_needed; /* non zero if the packets must be decoded in 'raw_fifo', see DECODING_FOR_* */ #define DECODING_FOR_OST 1 #define DECODING_FOR_FILTER 2 + int processing_needed; /* non zero if the packets must be processed */ AVCodecContext *dec_ctx; const AVCodec *dec; |