summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg_filter.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-02-14 14:07:01 -0300
committerJames Almer <jamrial@gmail.com>2022-02-28 12:10:51 -0300
commitafe485ee6b3bbcd4b0e106eb9fc4dcf4846db1b8 (patch)
tree32cd46c17fc1afe94dac7f6d5576e3f27468bb75 /fftools/ffmpeg_filter.c
parent4f21a9ae6b86cc481af4f92249bef877bdf64fdc (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_filter.c')
-rw-r--r--fftools/ffmpeg_filter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 2c3f21985f..b80d7189db 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -277,6 +277,7 @@ static void init_input_filter(FilterGraph *fg, AVFilterInOut *in)
ist->discard = 0;
ist->decoding_needed |= DECODING_FOR_FILTER;
+ ist->processing_needed = 1;
ist->st->discard = AVDISCARD_NONE;
ifilter = ALLOC_ARRAY_ELEM(fg->inputs, fg->nb_inputs);