lavfi/alphaextract: copy width and not linesize.

Padding data is not supposed to be copied.
pull/18/head
Clément Bœsch 12 years ago
parent c3dcd3a255
commit 5043d8d213
  1. 3
      libavfilter/vf_alphaextract.c

@ -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);
}
}

Loading…
Cancel
Save