[FFmpeg-cvslog] swscale/swscale_unscaled: Fix packed_16bpc_bswap() with slices
Michael Niedermayer
git at videolan.org
Fri Sep 2 22:58:49 EEST 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Sep 2 20:25:24 2016 +0200| [47bc1bdafb0950ccf128eaa491d8fd7cc0978813] | committer: Michael Niedermayer
swscale/swscale_unscaled: Fix packed_16bpc_bswap() with slices
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=47bc1bdafb0950ccf128eaa491d8fd7cc0978813
---
libswscale/swscale_unscaled.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index b231abe..8df0694 100644
--- a/libswscale/swscale_unscaled.c
+++ b/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));
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]);
More information about the ffmpeg-cvslog
mailing list