Commit 47bc1bda authored by Michael Niedermayer's avatar Michael Niedermayer

swscale/swscale_unscaled: Fix packed_16bpc_bswap() with slices

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 89ec11e0
......@@ -352,6 +352,7 @@ static int packed_16bpc_bswap(SwsContext *c, const uint8_t *src[],
int min_stride = FFMIN(FFABS(srcstr), FFABS(dststr));
if(!dstPtr || !srcPtr)
continue;
dstPtr += (srcSliceY >> c->chrDstVSubSample) * dststr;
for (i = 0; i < (srcSliceH >> c->chrDstVSubSample); i++) {
for (j = 0; j < min_stride; j++) {
dstPtr[j] = av_bswap16(srcPtr[j]);
......
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