[PATCH] Add FATE test for rare overflow-prone case

Vitor Sessak vitor1001
Sun Jan 23 20:02:15 CET 2011


---
 tests/fate/h264.mak                   |    4 ++++
 tests/ref/fate/h264-plane16x16-hcoeff |   29 +++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 0 deletions(-)
 create mode 100644 tests/ref/fate/h264-plane16x16-hcoeff

diff --git a/tests/fate/h264.mak b/tests/fate/h264.mak
index 25517fe..3ff0dbb 100644
--- a/tests/fate/h264.mak
+++ b/tests/fate/h264.mak
@@ -167,6 +167,7 @@ FATE_H264 = aud_mw_e                                                    \
 FATE_H264  := $(FATE_H264:%=fate-h264-conformance-%)                    \
               fate-h264-interlace-crop                                  \
               fate-h264-lossless                                        \
+              fate-h264-plane16x16-hcoeff                               \
 
 FATE_TESTS += $(FATE_H264)
 fate-h264: $(FATE_H264)
@@ -339,3 +340,6 @@ fate-h264-conformance-sva_nl2_e: CMD = framecrc  -i $(SAMPLES)/h264-conformance/
 
 fate-h264-interlace-crop: CMD = framecrc  -vframes 3 -i $(SAMPLES)/h264/interlaced_crop.mp4
 fate-h264-lossless: CMD = framecrc -i $(SAMPLES)/h264/lossless.h264
+
+# see issue 2547
+fate-h264-plane16x16-hcoeff: CMD = framecrc -i $(SAMPLES)/h264/H264_might_overflow.mkv
diff --git a/tests/ref/fate/h264-plane16x16-hcoeff b/tests/ref/fate/h264-plane16x16-hcoeff
new file mode 100644
index 0000000..f266426
--- /dev/null
+++ b/tests/ref/fate/h264-plane16x16-hcoeff
@@ -0,0 +1,29 @@
+0, 0, 3110400, 0xf21427bb
+0, 3754, 3110400, 0xf21427bb
+0, 7508, 3110400, 0xf21427bb
+0, 11261, 3110400, 0xf21427bb
+0, 15015, 3110400, 0xf21427bb
+0, 18769, 3110400, 0xf21427bb
+0, 22523, 3110400, 0xf21427bb
+0, 26276, 3110400, 0xf21427bb
+0, 30030, 3110400, 0xf21427bb
+0, 33784, 3110400, 0xf21427bb
+0, 37538, 3110400, 0xf21427bb
+0, 41291, 3110400, 0xf21427bb
+0, 45045, 3110400, 0xf21427bb
+0, 48799, 3110400, 0xf21427bb
+0, 52553, 3110400, 0xf21427bb
+0, 56306, 3110400, 0xf21427bb
+0, 60060, 3110400, 0xf21427bb
+0, 63814, 3110400, 0xf21427bb
+0, 67568, 3110400, 0xf21427bb
+0, 71321, 3110400, 0xf21427bb
+0, 75075, 3110400, 0xf21427bb
+0, 78829, 3110400, 0xf21427bb
+0, 82583, 3110400, 0xf21427bb
+0, 86336, 3110400, 0xf21427bb
+0, 90090, 3110400, 0x16db0d9d
+0, 93844, 3110400, 0xb13f4b0e
+0, 97598, 3110400, 0x9e09bbec
+0, 101351, 3110400, 0x9798fe7f
+0, 105105, 3110400, 0x9798fe7f
-- 
1.7.1


--------------040208000404090405050608--



More information about the ffmpeg-devel mailing list