diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-04-15 16:07:51 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-04-15 16:07:51 +0000 |
commit | 8281791d0735d1f531f87e2b92b4b23022bcb16f (patch) | |
tree | cb2bb6254d6fd57b27b2c47c6b1bd2f8e281f597 | |
parent | 77709759797fb3c4376ca361fb7caedf3a9fb474 (diff) | |
download | ffmpeg-8281791d0735d1f531f87e2b92b4b23022bcb16f.tar.gz |
lavfi/histogram: remove pointless store
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavfilter/vf_histogram.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavfilter/vf_histogram.c b/libavfilter/vf_histogram.c index 3c348858a6..9434e518b3 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[] = { |