mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 05:00:37 +00:00
swscale: fix crash with swscale-test when using slices
This commit is contained in:
parent
2ed8baa614
commit
b5deacfb1f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user