Browse code

When doing -vstats and also changing the frame rate, then don't count (and report) frames that are dropped.

Originally committed as revision 1465 to svn://svn.ffmpeg.org/ffmpeg/trunk

Philip Gladstone authored on 2003/01/17 13:14:50
Showing 1 changed files
... ...
@@ -532,6 +532,8 @@ static void do_video_out(AVFormatContext *s,
532 532
     /* by default, we output a single frame */
533 533
     nb_frames = 1;
534 534
 
535
+    *frame_size = 0;
536
+
535 537
     /* NOTE: the A/V sync is always done by considering the audio is
536 538
        the master clock. It is suffisant for transcoding or playing,
537 539
        but not for the general case */
... ...
@@ -1401,7 +1403,7 @@ static int av_encode(AVFormatContext **output_files,
1401 1401
                                 }
1402 1402
 
1403 1403
                                 do_video_out(os, ost, ist, &picture, &frame_size, audio_sync);
1404
-                                if (do_vstats)
1404
+                                if (do_vstats && frame_size)
1405 1405
                                     do_video_stats(os, ost, frame_size);
1406 1406
                             }
1407 1407
                             break;