Commit 8281791d authored by Paul B Mahol's avatar Paul B Mahol

lavfi/histogram: remove pointless store

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 77709759
...@@ -168,7 +168,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) ...@@ -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) ...@@ -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[] = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment