aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ref
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-09-30 18:30:26 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2020-01-06 15:03:15 +0100
commit9c026dd94d3fe921b180a917309334e3c43f614f (patch)
tree941c1af6963309612da7e72cfffa068af7be6318 /tests/ref
parent0667c14ad61d9fbfac7c92000278be769420fa9a (diff)
downloadffmpeg-9c026dd94d3fe921b180a917309334e3c43f614f.tar.gz
avcodec/fitsdec: Use lrint()
Fixes: fate-fitsdec-bitpix-64 Possibly Fixes: -nan is outside the range of representable values of type 'unsigned short' Possibly Fixes: 17769/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FITS_fuzzer-5678314672357376 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 37f31f4e509fe4ccc56a64edaa6fa3d95ee20466) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests/ref')
-rw-r--r--tests/ref/fate/fitsdec-bitpix-322
-rw-r--r--tests/ref/fate/fitsdec-bitpix-642
-rw-r--r--tests/ref/fate/fitsdec-blank_bitpix322
-rw-r--r--tests/ref/fate/fitsdec-ext_data_min_max2
-rw-r--r--tests/ref/fate/fitsdec-gray2
-rw-r--r--tests/ref/lavf/fits2
6 files changed, 6 insertions, 6 deletions
diff --git a/tests/ref/fate/fitsdec-bitpix-32 b/tests/ref/fate/fitsdec-bitpix-32
index 9bce361555..b3a51401d4 100644
--- a/tests/ref/fate/fitsdec-bitpix-32
+++ b/tests/ref/fate/fitsdec-bitpix-32
@@ -3,4 +3,4 @@
#codec_id 0: rawvideo
#dimensions 0: 102x109
#sar 0: 0/1
-0, 0, 0, 1, 22236, 0x34490902
+0, 0, 0, 1, 22236, 0x24634517
diff --git a/tests/ref/fate/fitsdec-bitpix-64 b/tests/ref/fate/fitsdec-bitpix-64
index 9febdd68f4..e50d5e029c 100644
--- a/tests/ref/fate/fitsdec-bitpix-64
+++ b/tests/ref/fate/fitsdec-bitpix-64
@@ -3,4 +3,4 @@
#codec_id 0: rawvideo
#dimensions 0: 77x173
#sar 0: 0/1
-0, 0, 0, 1, 26642, 0x0ad2a46a
+0, 0, 0, 1, 26642, 0xa9eec634
diff --git a/tests/ref/fate/fitsdec-blank_bitpix32 b/tests/ref/fate/fitsdec-blank_bitpix32
index 184fd41c59..330d6710ca 100644
--- a/tests/ref/fate/fitsdec-blank_bitpix32
+++ b/tests/ref/fate/fitsdec-blank_bitpix32
@@ -3,4 +3,4 @@
#codec_id 0: rawvideo
#dimensions 0: 256x256
#sar 0: 0/1
-0, 0, 0, 1, 131072, 0x7fb22427
+0, 0, 0, 1, 131072, 0x3ecd0739
diff --git a/tests/ref/fate/fitsdec-ext_data_min_max b/tests/ref/fate/fitsdec-ext_data_min_max
index 9009a4efb3..006d8d6250 100644
--- a/tests/ref/fate/fitsdec-ext_data_min_max
+++ b/tests/ref/fate/fitsdec-ext_data_min_max
@@ -3,4 +3,4 @@
#codec_id 0: rawvideo
#dimensions 0: 512x512
#sar 0: 0/1
-0, 0, 0, 1, 524288, 0xc327ed23
+0, 0, 0, 1, 524288, 0x6567ecb3
diff --git a/tests/ref/fate/fitsdec-gray b/tests/ref/fate/fitsdec-gray
index 425b31fc0f..d080732452 100644
--- a/tests/ref/fate/fitsdec-gray
+++ b/tests/ref/fate/fitsdec-gray
@@ -3,4 +3,4 @@
#codec_id 0: rawvideo
#dimensions 0: 128x128
#sar 0: 0/1
-0, 0, 0, 1, 16384, 0xd788a2d2
+0, 0, 0, 1, 16384, 0x353dbacd
diff --git a/tests/ref/lavf/fits b/tests/ref/lavf/fits
index 489542b32b..50b5fb78a2 100644
--- a/tests/ref/lavf/fits
+++ b/tests/ref/lavf/fits
@@ -3,7 +3,7 @@ ed9fd697d0d782df6201f6a2db184552 *./tests/data/lavf/graylavf.fits
./tests/data/lavf/graylavf.fits CRC=0xbacf446c
48e6caf6a59e32f9a8a39979c9183a7f *./tests/data/lavf/gray16belavf.fits
10368000 ./tests/data/lavf/gray16belavf.fits
-./tests/data/lavf/gray16belavf.fits CRC=0xae2b58d4
+./tests/data/lavf/gray16belavf.fits CRC=0xce89ed97
be2f7112fd193c9a909304c81e662769 *./tests/data/lavf/gbrplavf.fits
15408000 ./tests/data/lavf/gbrplavf.fits
./tests/data/lavf/gbrplavf.fits CRC=0x04ed3828