mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-19 21:40:21 +08:00
Off by 1 bugfix for nb_frames_dup.
From ffmbc0.3 Originally committed as revision 20864 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
2
ffmpeg.c
2
ffmpeg.c
@ -917,7 +917,7 @@ static void do_video_out(AVFormatContext *s,
|
|||||||
if (verbose>2)
|
if (verbose>2)
|
||||||
fprintf(stderr, "*** drop!\n");
|
fprintf(stderr, "*** drop!\n");
|
||||||
}else if (nb_frames > 1) {
|
}else if (nb_frames > 1) {
|
||||||
nb_frames_dup += nb_frames;
|
nb_frames_dup += nb_frames - 1;
|
||||||
if (verbose>2)
|
if (verbose>2)
|
||||||
fprintf(stderr, "*** %d dup!\n", nb_frames-1);
|
fprintf(stderr, "*** %d dup!\n", nb_frames-1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user