[FFmpeg-cvslog] Fix gif regression test on big-endian.

Reimar Döffinger git at videolan.org
Mon Apr 9 21:56:16 CEST 2012


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Mon Apr  9 21:54:38 2012 +0200| [7f66912f1a303a369f6ac435d630971d74310a81] | committer: Reimar Döffinger

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 at gmx.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7f66912f1a303a369f6ac435d630971d74310a81
---

 tests/lavf-regression.sh |   14 +++++++-------
 tests/ref/lavf/gif       |   14 +++++++-------
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/tests/lavf-regression.sh b/tests/lavf-regression.sh
index 97fdd3f..66e394c 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 e8639ac..c01ad15 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



More information about the ffmpeg-cvslog mailing list