ffmpeg.c - drain all decoded frames during stream_loop flush
authorGyan Doshi <gyandoshi@gmail.com>
Thu, 15 Mar 2018 11:15:51 +0000 (16:45 +0530)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 20 Mar 2018 21:59:40 +0000 (22:59 +0100)
commit8ad83044b47a2544907562f5e8fd11dd1a62ef82
tree0b489106500075ee3a1233b028c7dc47e73d2732
parent2aac5ad2f72cf9a1f024187b78f949c5613ceacd
ffmpeg.c - drain all decoded frames during stream_loop flush

When a decoded stream is being looped, after each post-EOF rewind,
decoders are flushed in seek_to_start(). This only drains 1 frame, and
thus the output has a few frames missing at the tail of each iteration
except the last.

With this patch, process_input is looped till process_input_packet
reaches EOF.

Fixes #7081

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
fftools/ffmpeg.c