diff options
author | Mark Himsley <mark@mdsh.com> | 2011-10-25 16:41:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-25 18:24:25 +0200 |
commit | 1ca1336067aaad80f223477b763b620ac5f61699 (patch) | |
tree | 0ddee7dba4cc70c9b7fd967257cceb7bf64443a9 /libavfilter/vsrc_testsrc.c | |
parent | cf88cf17d0c6bd745f3e57e5e562ad2badf45dc1 (diff) | |
download | ffmpeg-1ca1336067aaad80f223477b763b620ac5f61699.tar.gz |
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>
Diffstat (limited to 'libavfilter/vsrc_testsrc.c')
-rw-r--r-- | libavfilter/vsrc_testsrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index 790453a678..33d2a0196a 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilter/vsrc_testsrc.c @@ -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); |