[FFmpeg-cvslog] lavfi/histogram: remove pointless store

Paul B Mahol git at videolan.org
Mon Apr 15 18:18:40 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Apr 15 16:07:51 2013 +0000| [8281791d0735d1f531f87e2b92b4b23022bcb16f] | committer: Paul B Mahol

lavfi/histogram: remove pointless store

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

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

diff --git a/libavfilter/vf_histogram.c b/libavfilter/vf_histogram.c
index 3c34885..9434e51 100644
--- a/libavfilter/vf_histogram.c
+++ b/libavfilter/vf_histogram.c
@@ -168,7 +168,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
     AVFrame *out;
     const uint8_t *src;
     uint8_t *dst;
-    int i, j, k, l, ret;
+    int i, j, k, l;
 
     out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
     if (!out) {
@@ -285,11 +285,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
         av_assert0(0);
     }
 
-    ret = ff_filter_frame(outlink, out);
     av_frame_free(&in);
-    if (ret < 0)
-        return ret;
-    return 0;
+    return ff_filter_frame(outlink, out);
 }
 
 static const AVFilterPad inputs[] = {



More information about the ffmpeg-cvslog mailing list