From 5a03c6b8e5d088126378b2dd3aef93fbc0216d06 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 23 Feb 2018 00:29:44 +0000 Subject: Fix duplicate frames when padding. --- src/lib/ffmpeg_decoder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/ffmpeg_decoder.cc') diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 2f46f17c6..a5b6af7de 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -129,7 +129,7 @@ FFmpegDecoder::flush () if (video) { double const vfr = _ffmpeg_content->video_frame_rate().get(); Frame const f = full_length.frames_round (vfr); - Frame v = video->position().frames_round (vfr); + Frame v = video->position().frames_round (vfr) + 1; while (v < f) { video->emit (shared_ptr (new RawImageProxy (_black_image)), v); ++v; -- cgit v1.2.3