Commit 1ca13360 authored by Mark Himsley's avatar Mark Himsley Committed by Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent cf88cf17
......@@ -137,8 +137,8 @@ static int request_frame(AVFilterLink *outlink)
picref->video->interlaced = 0;
picref->video->pict_type = AV_PICTURE_TYPE_I;
picref->video->sample_aspect_ratio = test->sar;
test->nb_frame++;
test->fill_picture_fn(outlink->src, picref);
test->nb_frame++;
avfilter_start_frame(outlink, avfilter_ref_buffer(picref, ~0));
avfilter_draw_slice(outlink, 0, picref->video->h, 1);
......
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