mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-12 10:15:22 +00:00
vsrc_testsrc: avoid an unnecessary avfilter_ref_buffer().
This commit is contained in:
parent
5b50ae94e6
commit
533fd5b5b4
@ -143,10 +143,9 @@ static int request_frame(AVFilterLink *outlink)
|
|||||||
test->nb_frame++;
|
test->nb_frame++;
|
||||||
test->fill_picture_fn(outlink->src, picref);
|
test->fill_picture_fn(outlink->src, picref);
|
||||||
|
|
||||||
ff_start_frame(outlink, avfilter_ref_buffer(picref, ~0));
|
ff_start_frame(outlink, picref);
|
||||||
ff_draw_slice(outlink, 0, picref->video->h, 1);
|
ff_draw_slice(outlink, 0, test->h, 1);
|
||||||
ff_end_frame(outlink);
|
ff_end_frame(outlink);
|
||||||
avfilter_unref_buffer(picref);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user