mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
swscale: fix used stride in planarToNv12Wrapper()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ef627bf9ec
commit
94d7ca2b58
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user