swscale/swscale_unscaled: Fix packed_16bpc_bswap() with slices

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/230/head
Michael Niedermayer 8 years ago
parent 89ec11e096
commit 47bc1bdafb
  1. 1
      libswscale/swscale_unscaled.c

@ -352,6 +352,7 @@ static int packed_16bpc_bswap(SwsContext *c, const uint8_t *src[],
int min_stride = FFMIN(FFABS(srcstr), FFABS(dststr)); int min_stride = FFMIN(FFABS(srcstr), FFABS(dststr));
if(!dstPtr || !srcPtr) if(!dstPtr || !srcPtr)
continue; continue;
dstPtr += (srcSliceY >> c->chrDstVSubSample) * dststr;
for (i = 0; i < (srcSliceH >> c->chrDstVSubSample); i++) { for (i = 0; i < (srcSliceH >> c->chrDstVSubSample); i++) {
for (j = 0; j < min_stride; j++) { for (j = 0; j < min_stride; j++) {
dstPtr[j] = av_bswap16(srcPtr[j]); dstPtr[j] = av_bswap16(srcPtr[j]);

Loading…
Cancel
Save