lavfi/show{spectrum,waves}: use ff_filter_frame().
authorClément Bœsch <ubitux@gmail.com>
Thu, 29 Nov 2012 02:56:07 +0000 (03:56 +0100)
committerClément Bœsch <ubitux@gmail.com>
Thu, 29 Nov 2012 10:44:20 +0000 (11:44 +0100)
libavfilter/avf_showspectrum.c
libavfilter/avf_showwaves.c

index 5a0aea2..977fca9 100644 (file)
@@ -188,9 +188,7 @@ inline static void push_frame(AVFilterLink *outlink)
     showspectrum->filled = 0;
     showspectrum->req_fullfilled = 1;
 
-    ff_start_frame(outlink, avfilter_ref_buffer(showspectrum->outpicref, ~AV_PERM_WRITE));
-    ff_draw_slice(outlink, 0, outlink->h, 1);
-    ff_end_frame(outlink);
+    ff_filter_frame(outlink, avfilter_ref_buffer(showspectrum->outpicref, ~AV_PERM_WRITE));
 }
 
 static int request_frame(AVFilterLink *outlink)
index 765e998..30a8e1e 100644 (file)
@@ -153,9 +153,7 @@ inline static void push_frame(AVFilterLink *outlink)
 {
     ShowWavesContext *showwaves = outlink->src->priv;
 
-    ff_start_frame(outlink, showwaves->outpicref);
-    ff_draw_slice(outlink, 0, outlink->h, 1);
-    ff_end_frame(outlink);
+    ff_filter_frame(outlink, showwaves->outpicref);
     showwaves->req_fullfilled = 1;
     showwaves->outpicref = NULL;
     showwaves->buf_idx = 0;