From 9262f13269b1dfdd01deee4104a233f8916c1597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Thu, 29 Nov 2012 03:56:07 +0100 Subject: [PATCH] lavfi/show{spectrum,waves}: use ff_filter_frame(). --- libavfilter/avf_showspectrum.c | 4 +--- libavfilter/avf_showwaves.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c index 5a0aea2eb5..977fca92a6 100644 --- a/libavfilter/avf_showspectrum.c +++ b/libavfilter/avf_showspectrum.c @@ -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) diff --git a/libavfilter/avf_showwaves.c b/libavfilter/avf_showwaves.c index 765e998694..30a8e1e62f 100644 --- a/libavfilter/avf_showwaves.c +++ b/libavfilter/avf_showwaves.c @@ -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;