lavfi/histogram: remove pointless store

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2013-04-15 16:07:51 +00:00
parent 7770975979
commit 8281791d07
1 changed files with 2 additions and 5 deletions

View File

@ -168,7 +168,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
AVFrame *out; AVFrame *out;
const uint8_t *src; const uint8_t *src;
uint8_t *dst; uint8_t *dst;
int i, j, k, l, ret; int i, j, k, l;
out = ff_get_video_buffer(outlink, outlink->w, outlink->h); out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
if (!out) { if (!out) {
@ -285,11 +285,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
av_assert0(0); av_assert0(0);
} }
ret = ff_filter_frame(outlink, out);
av_frame_free(&in); av_frame_free(&in);
if (ret < 0) return ff_filter_frame(outlink, out);
return ret;
return 0;
} }
static const AVFilterPad inputs[] = { static const AVFilterPad inputs[] = {