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>
(cherry picked from commit a6ca22c118
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
88326e29dc
commit
0ec11133d9
@ -300,8 +300,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