Commit 5043d8d2 authored by Clément Bœsch's avatar Clément Bœsch

lavfi/alphaextract: copy width and not linesize.

Padding data is not supposed to be copied.
parent c3dcd3a2
......@@ -86,12 +86,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *cur_buf)
}
}
} else {
const int linesize = abs(FFMIN(out_buf->linesize[Y], cur_buf->linesize[A]));
int y;
for (y = 0; y < outlink->h; y++) {
memcpy(out_buf->data[Y] + y * out_buf->linesize[Y],
cur_buf->data[A] + y * cur_buf->linesize[A],
linesize);
outlink->w);
}
}
......
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