You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
testsrc seconds display is out-by-one frame
Without this patch each displayed second is incremented 1 frame early, second 0 is only 24 frames long where as every other second is 25 frames long. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
cf88cf17d0
commit
1ca1336067
@@ -137,8 +137,8 @@ static int request_frame(AVFilterLink *outlink)
|
|||||||
picref->video->interlaced = 0;
|
picref->video->interlaced = 0;
|
||||||
picref->video->pict_type = AV_PICTURE_TYPE_I;
|
picref->video->pict_type = AV_PICTURE_TYPE_I;
|
||||||
picref->video->sample_aspect_ratio = test->sar;
|
picref->video->sample_aspect_ratio = test->sar;
|
||||||
test->nb_frame++;
|
|
||||||
test->fill_picture_fn(outlink->src, picref);
|
test->fill_picture_fn(outlink->src, picref);
|
||||||
|
test->nb_frame++;
|
||||||
|
|
||||||
avfilter_start_frame(outlink, avfilter_ref_buffer(picref, ~0));
|
avfilter_start_frame(outlink, avfilter_ref_buffer(picref, ~0));
|
||||||
avfilter_draw_slice(outlink, 0, picref->video->h, 1);
|
avfilter_draw_slice(outlink, 0, picref->video->h, 1);
|
||||||
|
Reference in New Issue
Block a user