Commit 77709759 authored by Paul B Mahol's avatar Paul B Mahol

lavfi/noise: remove pointless store

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 9ecdd766
...@@ -377,7 +377,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref) ...@@ -377,7 +377,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
NoiseContext *n = inlink->dst->priv; NoiseContext *n = inlink->dst->priv;
AVFilterLink *outlink = inlink->dst->outputs[0]; AVFilterLink *outlink = inlink->dst->outputs[0];
AVFrame *out; AVFrame *out;
int ret, i; int i;
if (av_frame_is_writable(inpicref)) { if (av_frame_is_writable(inpicref)) {
out = inpicref; out = inpicref;
...@@ -394,10 +394,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref) ...@@ -394,10 +394,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
noise(out->data[i], inpicref->data[i], out->linesize[i], noise(out->data[i], inpicref->data[i], out->linesize[i],
inpicref->linesize[i], n->linesize[i], n->height[i], n, i); inpicref->linesize[i], n->linesize[i], n->height[i], n, i);
ret = ff_filter_frame(outlink, out);
if (inpicref != out) if (inpicref != out)
av_frame_free(&inpicref); av_frame_free(&inpicref);
return ret; return ff_filter_frame(outlink, out);
} }
static av_cold int init(AVFilterContext *ctx) static av_cold int init(AVFilterContext *ctx)
......
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