From 15d9645fb4ce005f986cc71b3954a739b23356c5 Mon Sep 17 00:00:00 2001 From: Derek Buitenhuis Date: Fri, 12 Feb 2016 18:04:34 +0000 Subject: [PATCH] swscale/slice: Actually use the buffers' strides Signed-off-by: Derek Buitenhuis --- libswscale/slice.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libswscale/slice.c b/libswscale/slice.c index 66fe413ac6..a7014872c4 100644 --- a/libswscale/slice.c +++ b/libswscale/slice.c @@ -159,9 +159,9 @@ int ff_init_slice_from_src(SwsSlice * s, uint8_t *src[4], int stride[4], int src lumY + lumH}; const uint8_t *src_[4] = {src[0] + (relative ? 0 : start[0]) * stride[0], - src[1] + (relative ? 0 : start[1]) * stride[0], - src[2] + (relative ? 0 : start[2]) * stride[0], - src[3] + (relative ? 0 : start[3]) * stride[0]}; + src[1] + (relative ? 0 : start[1]) * stride[1], + src[2] + (relative ? 0 : start[2]) * stride[2], + src[3] + (relative ? 0 : start[3]) * stride[3]}; s->width = srcW;