Fix duplicate frames when padding.
[dcpomatic.git] / src / lib / ffmpeg_decoder.cc
index 2f46f17c649c21b32a97ebcd3936bbec5d612750..a5b6af7de51497550c8c1d450d20f9d04241ad68 100644 (file)
@@ -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;