aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale_unscaled.c
diff options
context:
space:
mode:
authorPedro Arthur <bygrandao@gmail.com>2016-06-08 21:36:16 -0300
committerPedro Arthur <bygrandao@gmail.com>2016-06-10 08:50:57 -0300
commitb5deacfb1fece3406ef0bb790c1614a7096513b4 (patch)
tree229313fd74633bc516cd26bd273a2046ee325ba7 /libswscale/swscale_unscaled.c
parent2ed8baa614839bffa2df0fb14687239994613892 (diff)
downloadffmpeg-b5deacfb1fece3406ef0bb790c1614a7096513b4.tar.gz
swscale: fix crash with swscale-test when using slices
Diffstat (limited to 'libswscale/swscale_unscaled.c')
-rw-r--r--libswscale/swscale_unscaled.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index 4d6cfd115f..b231abe7e1 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -575,7 +575,7 @@ static int Rgb16ToPlanarRgb16Wrapper(SwsContext *c, const uint8_t *src[],
case AV_PIX_FMT_RGB48BE:
case AV_PIX_FMT_RGBA64LE:
case AV_PIX_FMT_RGBA64BE:
- packed16togbra16(src[0] + srcSliceY * srcStride[0], srcStride[0],
+ packed16togbra16(src[0], srcStride[0],
dst2013, stride2013, srcSliceH, alpha, swap,
16 - bpc, c->srcW);
break;
@@ -583,7 +583,7 @@ static int Rgb16ToPlanarRgb16Wrapper(SwsContext *c, const uint8_t *src[],
case AV_PIX_FMT_BGR48BE:
case AV_PIX_FMT_BGRA64LE:
case AV_PIX_FMT_BGRA64BE:
- packed16togbra16(src[0] + srcSliceY * srcStride[0], srcStride[0],
+ packed16togbra16(src[0], srcStride[0],
dst1023, stride1023, srcSliceH, alpha, swap,
16 - bpc, c->srcW);
break;