Commit 295ce83e authored by Paul B Mahol's avatar Paul B Mahol

lavfi/il: remove pointless store

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 9bd1b1c1
......@@ -151,7 +151,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
IlContext *il = inlink->dst->priv;
AVFilterLink *outlink = inlink->dst->outputs[0];
AVFrame *out;
int ret, comp;
int comp;
out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
if (!out) {
......@@ -173,16 +173,15 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
}
if (il->has_alpha) {
int comp = il->nb_planes - 1;
comp = il->nb_planes - 1;
interleave(out->data[comp], inpicref->data[comp],
il->linesize[comp], inlink->h,
out->linesize[comp], inpicref->linesize[comp],
il->alpha_mode, il->alpha_swap);
}
ret = ff_filter_frame(outlink, out);
av_frame_free(&inpicref);
return ret;
return ff_filter_frame(outlink, out);
}
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