diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-12-01 04:24:21 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-12-02 03:23:45 +0400 |
commit | f61369d7621bcf9e0f3e9f133bf615889f2953a2 (patch) | |
tree | f27005ac03ad3909dfc403d7844bb89e6f224b73 /libavfilter | |
parent | 6d2892c9f597f1a82e7884648393fd92293ce107 (diff) |
lavfi/vsrc: switch to ff_filter_frame.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vsrc_cellauto.c | 6 | ||||
-rw-r--r-- | libavfilter/vsrc_life.c | 6 | ||||
-rw-r--r-- | libavfilter/vsrc_mptestsrc.c | 6 |
3 files changed, 3 insertions, 15 deletions
diff --git a/libavfilter/vsrc_cellauto.c b/libavfilter/vsrc_cellauto.c index 27a4d1887a..06d9f9aa13 100644 --- a/libavfilter/vsrc_cellauto.c +++ b/libavfilter/vsrc_cellauto.c @@ -319,11 +319,7 @@ static int request_frame(AVFilterLink *outlink) #ifdef DEBUG show_cellauto_row(outlink->src); #endif - - ff_start_frame(outlink, avfilter_ref_buffer(picref, ~0)); - ff_draw_slice(outlink, 0, cellauto->h, 1); - ff_end_frame(outlink); - avfilter_unref_buffer(picref); + ff_filter_frame(outlink, picref); return 0; } diff --git a/libavfilter/vsrc_life.c b/libavfilter/vsrc_life.c index ebe6cc2968..d8b8355126 100644 --- a/libavfilter/vsrc_life.c +++ b/libavfilter/vsrc_life.c @@ -439,11 +439,7 @@ static int request_frame(AVFilterLink *outlink) #ifdef DEBUG show_life_grid(outlink->src); #endif - - ff_start_frame(outlink, avfilter_ref_buffer(picref, ~0)); - ff_draw_slice(outlink, 0, life->h, 1); - ff_end_frame(outlink); - avfilter_unref_buffer(picref); + ff_filter_frame(outlink, picref); return 0; } diff --git a/libavfilter/vsrc_mptestsrc.c b/libavfilter/vsrc_mptestsrc.c index fa41e687ef..d526ee2cc9 100644 --- a/libavfilter/vsrc_mptestsrc.c +++ b/libavfilter/vsrc_mptestsrc.c @@ -355,11 +355,7 @@ static int request_frame(AVFilterLink *outlink) } test->frame_nb++; - - ff_start_frame(outlink, avfilter_ref_buffer(picref, ~0)); - ff_draw_slice(outlink, 0, picref->video->h, 1); - ff_end_frame(outlink); - avfilter_unref_buffer(picref); + ff_filter_frame(outlink, picref); return 0; } |