[FFmpeg-cvslog] lavfi/vsrc: switch to ff_filter_frame.

Clément Bœsch git at videolan.org
Sun Dec 2 00:26:06 CET 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Sat Dec  1 01:24:21 2012 +0100| [f61369d7621bcf9e0f3e9f133bf615889f2953a2] | committer: Clément Bœsch

lavfi/vsrc: switch to ff_filter_frame.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f61369d7621bcf9e0f3e9f133bf615889f2953a2
---

 libavfilter/vsrc_cellauto.c  |    6 +-----
 libavfilter/vsrc_life.c      |    6 +-----
 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 27a4d18..06d9f9a 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 ebe6cc2..d8b8355 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 fa41e68..d526ee2 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;
 }



More information about the ffmpeg-cvslog mailing list