aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale_unscaled.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-19 14:19:22 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-19 15:13:48 +0100
commit94d7ca2b58af13c379d90aad595e82448743abc7 (patch)
treebc70ffabb1c3a79845ae914df76bfd8de338fedb /libswscale/swscale_unscaled.c
parentef627bf9ecddfa888d4c6e4fd633852798c3b4a9 (diff)
downloadffmpeg-94d7ca2b58af13c379d90aad595e82448743abc7.tar.gz
swscale: fix used stride in planarToNv12Wrapper()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/swscale_unscaled.c')
-rw-r--r--libswscale/swscale_unscaled.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index bd9e7a59e2..4181e0ded7 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -168,10 +168,10 @@ static int planarToNv12Wrapper(SwsContext *c, const uint8_t *src[],
if (c->dstFormat == AV_PIX_FMT_NV12)
interleaveBytes(src[1], src[2], dst, c->srcW / 2, srcSliceH / 2,
- srcStride[1], srcStride[2], dstStride[0]);
+ srcStride[1], srcStride[2], dstStride[1]);
else
interleaveBytes(src[2], src[1], dst, c->srcW / 2, srcSliceH / 2,
- srcStride[2], srcStride[1], dstStride[0]);
+ srcStride[2], srcStride[1], dstStride[1]);
return srcSliceH;
}