mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
swscale/swscale: Fix several invalid shifts related to vChrDrop
Fixes: Invalid shifts Fixes: #8166 Fixes: filter-crop_scale_vflip FATE-test Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
a00fa73f47
commit
a6ca22c118
@ -295,8 +295,8 @@ static int swscale(SwsContext *c, const uint8_t *src[],
|
||||
srcStride[2] =
|
||||
srcStride[3] = srcStride[0];
|
||||
}
|
||||
srcStride[1] <<= c->vChrDrop;
|
||||
srcStride[2] <<= c->vChrDrop;
|
||||
srcStride[1] *= 1 << c->vChrDrop;
|
||||
srcStride[2] *= 1 << c->vChrDrop;
|
||||
|
||||
DEBUG_BUFFERS("swscale() %p[%d] %p[%d] %p[%d] %p[%d] -> %p[%d] %p[%d] %p[%d] %p[%d]\n",
|
||||
src[0], srcStride[0], src[1], srcStride[1],
|
||||
|
Loading…
Reference in New Issue
Block a user