Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-05-01 16:27:23 +0400
committerClément Bœsch <ubitux@gmail.com>2013-05-07 17:33:49 +0400
commit5043d8d213f18fbc010d2e2770d8642ebefb45df (patch)
treed99b5fd8fb8e1013683ce4f619fb373e77bceaa3 /libavfilter/vf_alphaextract.c
parentc3dcd3a255a0018105cd6731a1bcbf522f5a2719 (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.c3
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);
}
}