1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

swscale: fix stride used in planarToNv12Wrapper()

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Michael Niedermayer 2013-11-19 14:19:22 +01:00 committed by Anton Khirnov
parent e0ab5078a7
commit eb01a25fe1

View File

@ -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;
}