Commit 62485a61 authored by philipjsg's avatar philipjsg

When doing -vstats and also changing the frame rate, then don't count (and

report) frames that are dropped.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1465 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0b4789a7
......@@ -532,6 +532,8 @@ static void do_video_out(AVFormatContext *s,
/* by default, we output a single frame */
nb_frames = 1;
*frame_size = 0;
/* NOTE: the A/V sync is always done by considering the audio is
the master clock. It is suffisant for transcoding or playing,
but not for the general case */
......@@ -1401,7 +1403,7 @@ static int av_encode(AVFormatContext **output_files,
}
do_video_out(os, ost, ist, &picture, &frame_size, audio_sync);
if (do_vstats)
if (do_vstats && frame_size)
do_video_stats(os, ost, frame_size);
}
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment