aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLudmila Glinskih <lglinskih@gmail.com>2015-06-24 19:21:07 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-06-25 04:09:51 +0200
commitb04c630a3dbe4ff78233a7b44da092a5fde28f69 (patch)
treef416726a1192eb707a4a9af198a253670c86e3fc /tests
parent9ff5e7974a8fe32c3b595a481c06a41fa316a9ac (diff)
downloadandroid_external_ffmpeg-b04c630a3dbe4ff78233a7b44da092a5fde28f69.tar.gz
android_external_ffmpeg-b04c630a3dbe4ff78233a7b44da092a5fde28f69.tar.bz2
android_external_ffmpeg-b04c630a3dbe4ff78233a7b44da092a5fde28f69.zip
libavformat: Add H264 API test
Result differs in pkt_duration and time_base.den for some reason. Right now it tests only one example (adjusted to match the output). Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/fate/libavformat.mak4
-rw-r--r--tests/ref/fate/api-h26418
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/fate/libavformat.mak b/tests/fate/libavformat.mak
index a9c02bcbaf..0e1ff62ba1 100644
--- a/tests/fate/libavformat.mak
+++ b/tests/fate/libavformat.mak
@@ -14,5 +14,9 @@ FATE_LIBAVFORMAT-yes += fate-url
fate-url: libavformat/url-test$(EXESUF)
fate-url: CMD = run libavformat/url-test
+FATE_SAMPLES_AVCONV-$(call DEMDEC, H264, H264) += fate-api-h264
+fate-api-h264: libavformat/api-h264-test$(EXESUF)
+fate-api-h264: CMD = run libavformat/api-h264-test $(TARGET_SAMPLES)/h264-conformance/SVA_NL2_E.264
+
FATE-$(CONFIG_AVFORMAT) += $(FATE_LIBAVFORMAT-yes)
fate-libavformat: $(FATE_LIBAVFORMAT)
diff --git a/tests/ref/fate/api-h264 b/tests/ref/fate/api-h264
new file mode 100644
index 0000000000..e1b29f0f2c
--- /dev/null
+++ b/tests/ref/fate/api-h264
@@ -0,0 +1,18 @@
+#tb 0: 1/1200000
+0, 0, 0, 48000, 38016, 0xb9ac19bd
+0, 1, 1, 48000, 38016, 0x53c91566
+0, 2, 2, 48000, 38016, 0xb5bd089f
+0, 3, 3, 48000, 38016, 0xb81320bb
+0, 4, 4, 48000, 38016, 0x7c793dce
+0, 5, 5, 48000, 38016, 0x3d605b31
+0, 6, 6, 48000, 38016, 0x40216830
+0, 7, 7, 48000, 38016, 0x11c48f52
+0, 8, 8, 48000, 38016, 0x0f37a013
+0, 9, 9, 48000, 38016, 0xb06cb753
+0, 10, 10, 48000, 38016, 0x6233ca83
+0, 11, 11, 48000, 38016, 0x02b6d5a1
+0, 12, 12, 48000, 38016, 0xf76cc409
+0, 13, 13, 48000, 38016, 0xd19fa5c3
+0, 14, 14, 48000, 38016, 0x8d1c8a02
+0, 15, 15, 48000, 38016, 0x6802966d
+0, 16, 16, 48000, 38016, 0x107fb055