diff --git a/ffmpeg.c b/ffmpeg.c
index 63aa053a1970cf59cb7a42425694a17773091544..9df99dd1bee0583fe684446462ee0a9fa46b28fb 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -917,7 +917,7 @@ static void do_video_out(AVFormatContext *s,
             if (verbose>2)
                 fprintf(stderr, "*** drop!\n");
         }else if (nb_frames > 1) {
-            nb_frames_dup += nb_frames;
+            nb_frames_dup += nb_frames - 1;
             if (verbose>2)
                 fprintf(stderr, "*** %d dup!\n", nb_frames-1);
         }