diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2011-12-17 19:56:40 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-12-17 22:41:53 +0000 |
commit | 72dafea0fc0eb7230d7ebb0a7bc803e13b72aaad (patch) | |
tree | cee4a2212c3d21555a2c899c848191662dd18d0c /libavcodec/ppc | |
parent | 86a10281c7f6204b3ac1253718971b1f8c106699 (diff) | |
download | ffmpeg-72dafea0fc0eb7230d7ebb0a7bc803e13b72aaad.tar.gz |
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 <mans@mansr.com>
Diffstat (limited to 'libavcodec/ppc')
0 files changed, 0 insertions, 0 deletions