mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-07 15:22:57 +00:00
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
This commit is contained in:
parent
db40a39aba
commit
204c0f48f4
4
ffmpeg.c
4
ffmpeg.c
@ -532,6 +532,8 @@ static void do_video_out(AVFormatContext *s,
|
|||||||
/* by default, we output a single frame */
|
/* by default, we output a single frame */
|
||||||
nb_frames = 1;
|
nb_frames = 1;
|
||||||
|
|
||||||
|
*frame_size = 0;
|
||||||
|
|
||||||
/* NOTE: the A/V sync is always done by considering the audio is
|
/* NOTE: the A/V sync is always done by considering the audio is
|
||||||
the master clock. It is suffisant for transcoding or playing,
|
the master clock. It is suffisant for transcoding or playing,
|
||||||
but not for the general case */
|
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);
|
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);
|
do_video_stats(os, ost, frame_size);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user