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_hflip | |
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_hflip')
-rw-r--r-- | tests/ref/lavfi/pixfmts_hflip | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ref/lavfi/pixfmts_hflip b/tests/ref/lavfi/pixfmts_hflip index 4a32e35a1c..2084d581e1 100644 --- a/tests/ref/lavfi/pixfmts_hflip +++ b/tests/ref/lavfi/pixfmts_hflip @@ -29,12 +29,12 @@ yuv420p 2d5c80f9ba2ddd85b2aeda3564cc7d64 yuv420p16be 758b0c1e2113b15e7afde48da4e4d024 yuv420p16le 480ccd951dcb806bc875d307e02e50a0 yuv422p 6e728f4eb9eae287c224f396d84be6ea -yuv422p16be 9dbe0af0eb877987611cf04bfa577202 -yuv422p16le 2d8f37231110177cc5e1b61c8cb4b163 +yuv422p16be 8657d2c8d443940300fdb4028d555631 +yuv422p16le 4ab27609981e50de5b1150125718ae76 yuv440p a99e2b57ed601f39852715c9d675d0d3 yuv444p 947e47f7bb5fdccc659d19b7df2b6fc3 -yuv444p16be 38cdb28061ebb8e7aa3797238615e77f -yuv444p16le 80d654986d6f3754e924310a045fdb24 +yuv444p16be a5154ce329db0d2caf0bd43f1347dba3 +yuv444p16le 1f703308b90feb048191b3bccc695671 yuva420p d83ec0c01498189f179ec574918185f1 yuvj420p df3aaaec3bb157c3bde5f0365af30f4f yuvj422p d113871528d510a192797af59df9c05c |