diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2011-07-08 14:57:07 -0700 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-07-08 15:15:30 -0700 |
commit | 7d7bacf0f1f43f5cc112977fc3b8438e3e4a4a9b (patch) | |
tree | 522858daab38897c92fde6edd506c883177c8e8d /tests/ref/lavfi/pixfmts_scale | |
parent | bf2cba453244a74331238a472fe0e309f116f4d9 (diff) | |
download | ffmpeg-7d7bacf0f1f43f5cc112977fc3b8438e3e4a4a9b.tar.gz |
swscale: fix overflow in 16-bit vertical scaling.
We operated on 31-bits, but with e.g. lanczos scaling, values can
add up to beyond 0x80000000, thus leading to output of zeroes. Drop
one bit of precision fixes this.
Diffstat (limited to 'tests/ref/lavfi/pixfmts_scale')
-rw-r--r-- | tests/ref/lavfi/pixfmts_scale | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/ref/lavfi/pixfmts_scale b/tests/ref/lavfi/pixfmts_scale index 14c748ff10..094e52462f 100644 --- a/tests/ref/lavfi/pixfmts_scale +++ b/tests/ref/lavfi/pixfmts_scale @@ -31,19 +31,19 @@ uyvy422 314bd486277111a95d9369b944fa0400 yuv410p 7df8f6d69b56a8dcb6c7ee908e5018b5 yuv411p 1143e7c5cc28fe0922b051b17733bc4c yuv420p fdad2d8df8985e3d17e73c71f713cb14 -yuv420p10be aad747a7634ba4ed48f149cdfc78792e -yuv420p10le 46547f19a7f58638dff73657477b11b9 -yuv420p16be d7270efce54eb59c7b01c14157a1b890 -yuv420p16le e85abf00bad940a922b623c91c9026d7 +yuv420p10be af5429f27b9f95bf955e795921c65cdc +yuv420p10le d0b47e6a8a44e6b5ca0fe4349a4e393b +yuv420p16be 9688e33e03b8c8275ab2fb1df0f06bee +yuv420p16le cba8b390ad5e7b8678e419b8ce79c008 yuv420p9be a073b2d93b2a7dce2069ba252bc43175 yuv420p9le b67233c3c7d93763d07d88f697c145e1 yuv422p 918e37701ee7377d16a8a6c119c56a40 -yuv422p16be 5cd8fe1da161d21b65bf75bf4cb50c75 -yuv422p16le 3b545317b1f5e627751525fb2958d88e +yuv422p16be 2cf502d7d386db1f1b3b946679d897b1 +yuv422p16le 3002a4e47520731dcee5929aff49eb74 yuv440p 461503fdb9b90451020aa3b25ddf041c yuv444p 81b2eba962d12e8d64f003ac56f6faf2 -yuv444p16be 2bd3e992d1533f8e0978a8e0c7008243 -yuv444p16le daee5a461ae3bc53295c392e423aa1d7 +yuv444p16be b9f051ce7335923fe33efd162e48da1d +yuv444p16le fa47e317efac988b4a7fa55141c89126 yuva420p 8673a9131fb47de69788863f93a50eb7 yuvj420p 30427bd6caf5bda93a173dbebe759e09 yuvj422p fc8288f64fd149573f73cf8da05d8e6d |