summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-04-09 21:54:38 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-04-09 21:55:52 +0200
commit7f66912f1a303a369f6ac435d630971d74310a81 (patch)
tree2265355113a17066ec8c52085128c047b6b5c46d /tests
parent3532a87a25a8f034dabddfd00927611fc855669c (diff)
Fix gif regression test on big-endian.
Decode output must be converted to rgb24 to avoid CRC difference due to palette being stored in machine endianness. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/lavf-regression.sh14
-rw-r--r--tests/ref/lavf/gif14
2 files changed, 14 insertions, 14 deletions
diff --git a/tests/lavf-regression.sh b/tests/lavf-regression.sh
index 97fdd3ff05..66e394c687 100755
--- a/tests/lavf-regression.sh
+++ b/tests/lavf-regression.sh
@@ -174,13 +174,13 @@ file=${outfile}lavf.gif
do_avconv $file $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src $ENC_OPTS -t 1 -qscale 10 -pix_fmt rgb24
do_avconv_crc $file $DEC_OPTS -i $target_path/$file -pix_fmt rgb24
# and this the gif encoder
-do_image_formats gif
-do_image_formats gif "-pix_fmt rgb4_byte"
-do_image_formats gif "-pix_fmt bgr4_byte"
-do_image_formats gif "-pix_fmt rgb8"
-do_image_formats gif "-pix_fmt bgr8"
-do_image_formats gif "-pix_fmt gray"
-do_image_formats gif "-pix_fmt pal8"
+do_image_formats gif "" "-pix_fmt rgb24"
+do_image_formats gif "-pix_fmt rgb4_byte" "-pix_fmt rgb24"
+do_image_formats gif "-pix_fmt bgr4_byte" "-pix_fmt rgb24"
+do_image_formats gif "-pix_fmt rgb8" "-pix_fmt rgb24"
+do_image_formats gif "-pix_fmt bgr8" "-pix_fmt rgb24"
+do_image_formats gif "-pix_fmt gray" "-pix_fmt rgb24"
+do_image_formats gif "-pix_fmt pal8" "-pix_fmt rgb24"
fi
if [ -n "$do_yuv4mpeg" ] ; then
diff --git a/tests/ref/lavf/gif b/tests/ref/lavf/gif
index e8639acc86..c01ad15acb 100644
--- a/tests/ref/lavf/gif
+++ b/tests/ref/lavf/gif
@@ -2,23 +2,23 @@ e6089fd4ef3b9df44090ab3650bdd810 *./tests/data/lavf/lavf.gif
2906401 ./tests/data/lavf/lavf.gif
./tests/data/lavf/lavf.gif CRC=0xe5605ff6
fc4792ac40319344dc7027668a403fc3 *./tests/data/images/gif/02.gif
-./tests/data/images/gif/%02d.gif CRC=0xf217a95e
+./tests/data/images/gif/%02d.gif CRC=0x032e0034
81538 ./tests/data/images/gif/02.gif
759522b3025fcf8ed6aae582a18c5a14 *./tests/data/images/gif/02.gif
-./tests/data/images/gif/%02d.gif CRC=0x879a13f3
+./tests/data/images/gif/%02d.gif CRC=0x4c8f8a89
38715 ./tests/data/images/gif/02.gif
21e802ae7a2239bdbea6f915da1134b9 *./tests/data/images/gif/02.gif
-./tests/data/images/gif/%02d.gif CRC=0xe578993d
+./tests/data/images/gif/%02d.gif CRC=0x4c8f8a89
38715 ./tests/data/images/gif/02.gif
fc4792ac40319344dc7027668a403fc3 *./tests/data/images/gif/02.gif
-./tests/data/images/gif/%02d.gif CRC=0xf217a95e
+./tests/data/images/gif/%02d.gif CRC=0x032e0034
81538 ./tests/data/images/gif/02.gif
022dc66b5068404e88c618ce79d9eb5f *./tests/data/images/gif/02.gif
-./tests/data/images/gif/%02d.gif CRC=0x526cd97f
+./tests/data/images/gif/%02d.gif CRC=0x032e0034
81538 ./tests/data/images/gif/02.gif
e3392f49c55aa794d3dc49189f52f257 *./tests/data/images/gif/02.gif
-./tests/data/images/gif/%02d.gif CRC=0x46618ac3
+./tests/data/images/gif/%02d.gif CRC=0x22d67c27
63144 ./tests/data/images/gif/02.gif
022dc66b5068404e88c618ce79d9eb5f *./tests/data/images/gif/02.gif
-./tests/data/images/gif/%02d.gif CRC=0x526cd97f
+./tests/data/images/gif/%02d.gif CRC=0x032e0034
81538 ./tests/data/images/gif/02.gif