Commit 94d7ca2b authored by Michael Niedermayer's avatar Michael Niedermayer

swscale: fix used stride in planarToNv12Wrapper()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ef627bf9
...@@ -168,10 +168,10 @@ static int planarToNv12Wrapper(SwsContext *c, const uint8_t *src[], ...@@ -168,10 +168,10 @@ static int planarToNv12Wrapper(SwsContext *c, const uint8_t *src[],
if (c->dstFormat == AV_PIX_FMT_NV12) if (c->dstFormat == AV_PIX_FMT_NV12)
interleaveBytes(src[1], src[2], dst, c->srcW / 2, srcSliceH / 2, interleaveBytes(src[1], src[2], dst, c->srcW / 2, srcSliceH / 2,
srcStride[1], srcStride[2], dstStride[0]); srcStride[1], srcStride[2], dstStride[1]);
else else
interleaveBytes(src[2], src[1], dst, c->srcW / 2, srcSliceH / 2, 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; return srcSliceH;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment