[FFmpeg-cvslog] lavfi/ebur128: use ff_filter_frame() everywhere.

Clément Bœsch git at videolan.org
Thu Nov 29 03:48:47 CET 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu Nov 29 03:48:14 2012 +0100| [9236e9f1e11413edf540485d3f6a8aff4f8dac52] | committer: Clément Bœsch

lavfi/ebur128: use ff_filter_frame() everywhere.

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

 libavfilter/f_ebur128.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c
index 7fece13..f9da80d 100644
--- a/libavfilter/f_ebur128.c
+++ b/libavfilter/f_ebur128.c
@@ -625,9 +625,8 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples)
 
                 /* set pts and push frame */
                 pic->pts = pts;
-                if ((ret = ff_start_frame(outlink, avfilter_ref_buffer(pic, ~AV_PERM_WRITE))) < 0 ||
-                    (ret = ff_draw_slice(outlink, 0, outlink->h, 1)) < 0 ||
-                    (ret = ff_end_frame(outlink)) < 0)
+                ret = ff_filter_frame(outlink, avfilter_ref_buffer(pic, ~AV_PERM_WRITE));
+                if (ret < 0)
                     return ret;
             }
 



More information about the ffmpeg-cvslog mailing list