diff options
author | Ronald S. Bultje <[email protected]> | 2011-12-17 19:56:40 +0000 |
---|---|---|
committer | Mans Rullgard <[email protected]> | 2011-12-17 22:41:53 +0000 |
commit | 72dafea0fc0eb7230d7ebb0a7bc803e13b72aaad (patch) | |
tree | cee4a2212c3d21555a2c899c848191662dd18d0c /libswscale/utils.c | |
parent | 86a10281c7f6204b3ac1253718971b1f8c106699 (diff) |
swscale: fix overflow in gray16 vertical scaling.
This fixes the same overflow as in the RGB48/16-bit YUV scaling;
some filters can overflow both negatively and positively (e.g.
spline/lanczos), so we bias a signed integer so it's "half signed"
and "half unsigned", and can cover overflows in both directions
while maintaining full 31-bit depth.
Signed-off-by: Mans Rullgard <[email protected]>
Diffstat (limited to 'libswscale/utils.c')
0 files changed, 0 insertions, 0 deletions