From b04c630a3dbe4ff78233a7b44da092a5fde28f69 Mon Sep 17 00:00:00 2001 From: Ludmila Glinskih Date: Wed, 24 Jun 2015 19:21:07 +0300 Subject: 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 --- tests/fate/libavformat.mak | 4 ++++ tests/ref/fate/api-h264 | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 tests/ref/fate/api-h264 (limited to 'tests') 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 -- cgit v1.2.3