diff options
author | Michael Niedermayer | 2013-11-19 14:19:22 +0100 |
---|---|---|
committer | Anton Khirnov | 2014-01-21 17:54:40 +0100 |
commit | eb01a25fe1452740a7f3ae2cbaff356a5c6e7806 (patch) | |
tree | b27d1574d182599dfe6fbd8948bc33ba5650e3e7 /libswscale | |
parent | e0ab5078a7d865f8f6fd6a6d3cbe0f380ead4a3d (diff) |
swscale: fix stride used in planarToNv12Wrapper()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale_unscaled.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c index 3e5f49efeb..8c207b1476 100644 --- a/libswscale/swscale_unscaled.c +++ b/libswscale/swscale_unscaled.c @@ -147,10 +147,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; } |