summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-02-23 00:29:44 +0000
committerCarl Hetherington <cth@carlh.net>2018-02-23 00:58:02 +0000
commit1d4c7f065389981ba145b89a0a224cb986d8eb5b (patch)
tree1ee710c14eefe11c2579e15e3d47ffd997885156 /src/lib/ffmpeg_decoder.cc
parentf67fa2ab8a557d87b37608d16ce1553d47420e8b (diff)
Fix duplicate frames when padding.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
-rw-r--r--src/lib/ffmpeg_decoder.cc2
1 files changed, 1 insertions, 1 deletions
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<const ImageProxy> (new RawImageProxy (_black_image)), v);
++v;