diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-05-01 16:27:23 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-05-07 17:33:49 +0400 |
commit | 5043d8d213f18fbc010d2e2770d8642ebefb45df (patch) | |
tree | d99b5fd8fb8e1013683ce4f619fb373e77bceaa3 /libavfilter/vf_alphaextract.c | |
parent | c3dcd3a255a0018105cd6731a1bcbf522f5a2719 (diff) |
lavfi/alphaextract: copy width and not linesize.
Padding data is not supposed to be copied.
Diffstat (limited to 'libavfilter/vf_alphaextract.c')
-rw-r--r-- | libavfilter/vf_alphaextract.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vf_alphaextract.c b/libavfilter/vf_alphaextract.c index 62ceecff5f..d19a0f7bda 100644 --- a/libavfilter/vf_alphaextract.c +++ b/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); } } |