[FFmpeg-devel] [PATCH] api-h264-test: rename and expand
Ludmila Glinskih
lglinskih at gmail.com
Tue Aug 25 22:00:40 CEST 2015
Add support of floating point decoders. Add support of audio decoders.
---
tests/api/Makefile | 2 +-
tests/api/api-decode-test.c | 355 +++++++++++++++++++++++++++++++++++++++++
tests/api/api-h264-test.c | 166 -------------------
tests/fate/api.mak | 12 +-
tests/ref/fate/api-decode-h264 | 18 +++
tests/ref/fate/api-h264 | 18 ---
6 files changed, 383 insertions(+), 188 deletions(-)
create mode 100644 tests/api/api-decode-test.c
delete mode 100644 tests/api/api-h264-test.c
create mode 100644 tests/ref/fate/api-decode-h264
delete mode 100644 tests/ref/fate/api-h264
diff --git a/tests/api/Makefile b/tests/api/Makefile
index 27f499f..57a7422 100644
--- a/tests/api/Makefile
+++ b/tests/api/Makefile
@@ -1,5 +1,5 @@
APITESTPROGS-$(call ENCDEC, FLAC, FLAC) += api-flac
-APITESTPROGS-$(call DEMDEC, H264, H264) += api-h264
+APITESTPROGS-yes += api-decode
APITESTPROGS-yes += api-seek
APITESTPROGS-$(call DEMDEC, H263, H263) += api-band
APITESTPROGS += $(APITESTPROGS-yes)
diff --git a/tests/api/api-decode-test.c b/tests/api/api-decode-test.c
new file mode 100644
index 0000000..29c7dd7
--- /dev/null
+++ b/tests/api/api-decode-test.c
@@ -0,0 +1,355 @@
+/*
+ * Copyright (c) 2015 Ludmila Glinskih
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+/**
+ * Decode test.
+ */
+
+#include "libavutil/adler32.h"
+#include "libavcodec/avcodec.h"
+#include "libavformat/avformat.h"
+#include "libavutil/imgutils.h"
+#include "libswresample/swresample.h"
+#include "libavutil/opt.h"
+
+static int resample_and_print_data(AVCodecContext *ctx, AVFrame *fr, int sample_fmt)
+{
+ struct SwrContext *swr_ctx;
+ int dst_nb_samples;
+ int dst_bufsize;
+ int dst_linesize = 0;
+ uint8_t **dst_data = NULL;
+ int result;
+
+ swr_ctx = swr_alloc_set_opts(NULL,
+ fr->channel_layout,
+ sample_fmt,
+ fr->sample_rate,
+ fr->channel_layout,
+ ctx->sample_fmt,
+ fr->sample_rate,
+ 0, NULL);
+ if (!swr_ctx) {
+ av_log(NULL, AV_LOG_ERROR, "Could not allocate resampler context\n");
+ return -1;
+ }
+ result = swr_init(swr_ctx);
+ if (result < 0) {
+ av_log(NULL, AV_LOG_ERROR, "Can't initialize the resampling context\n");
+ return result;
+ }
+ dst_nb_samples = fr->nb_samples;
+ result = av_samples_alloc_array_and_samples(&dst_data, &dst_linesize, fr->channels,
+ dst_nb_samples, sample_fmt, 0);
+ if (result < 0) {
+ av_log(NULL, AV_LOG_ERROR, "Can't allocate buffer for samples after resampling\n");
+ return result;
+ }
+
+ result = swr_convert(swr_ctx, dst_data, dst_nb_samples, (const uint8_t **)fr->data, fr->nb_samples);
+ if (result < 0) {
+ av_log(NULL, AV_LOG_ERROR, "Error while resampling\n");
+ return result;
+ }
+
+ dst_bufsize = av_samples_get_buffer_size(&dst_linesize, fr->channels, result, sample_fmt, 1);
+ if (dst_bufsize < 0) {
+ av_log(NULL, AV_LOG_ERROR, "Can'get buffer size after resampling\n");
+ return dst_bufsize;
+ }
+
+ fwrite(dst_data[0], 1, dst_bufsize, stdout);
+
+ av_freep(dst_data);
+ av_freep(&dst_data);
+ swr_free(&swr_ctx);
+
+ return 0;
+}
+
+static int decode_video(AVPacket *pkt, AVCodecContext *ctx, int is_bitexact, int i, int *got_frame, int stream)
+{
+ AVFrame *fr = NULL;
+ uint8_t *byte_buffer = NULL;
+ int number_of_written_bytes;
+ int byte_buffer_size = 0;
+ int result;
+
+ fr = av_frame_alloc();
+ if (!fr) {
+ av_log(NULL, AV_LOG_ERROR, "Can't allocate frame\n");
+ return AVERROR(ENOMEM);
+ }
+
+ byte_buffer_size = av_image_get_buffer_size(ctx->pix_fmt, ctx->width, ctx->height, 16);
+ byte_buffer = av_malloc(byte_buffer_size);
+ if (!byte_buffer) {
+ av_log(NULL, AV_LOG_ERROR, "Can't allocate buffer\n");
+ return AVERROR(ENOMEM);
+ }
+
+ result = avcodec_decode_video2(ctx, fr, got_frame, pkt);
+ if (result < 0) {
+ av_log(NULL, AV_LOG_ERROR, "Error decoding frame\n");
+ return result;
+ }
+ if (*got_frame) {
+ number_of_written_bytes = av_image_copy_to_buffer(byte_buffer, byte_buffer_size,
+ (const uint8_t* const *)fr->data, (const int*) fr->linesize,
+ ctx->pix_fmt, ctx->width, ctx->height, 1);
+ if (number_of_written_bytes < 0) {
+ av_log(NULL, AV_LOG_ERROR, "Can't copy image to buffer\n");
+ return number_of_written_bytes;
+ }
+ if (is_bitexact)
+ printf("%d, %10"PRId64", %10"PRId64", %8"PRId64", %8d, 0x%08lx\n",
+ stream, fr->pkt_pts, fr->pkt_dts, av_frame_get_pkt_duration(fr),
+ number_of_written_bytes, av_adler32_update(0, (const uint8_t*)byte_buffer, number_of_written_bytes));
+ else
+ fwrite(byte_buffer, 1, number_of_written_bytes, stdout);
+ }
+
+ av_frame_free(&fr);
+ av_freep(&byte_buffer);
+
+ return 0;
+}
+
+static int decode_audio(AVPacket *pkt, AVCodecContext *ctx, int is_bitexact, int i, int *got_frame, int sample_fmt, int stream)
+{
+ AVFrame *fr = NULL;
+ int number_of_written_bytes;
+ int result = 0;
+ int length_read;
+
+ fr = av_frame_alloc();
+ if (!fr) {
+ av_log(NULL, AV_LOG_ERROR, "Can't allocate frame\n");
+ return AVERROR(ENOMEM);
+ }
+
+ length_read = 0;
+ do {
+ result = avcodec_decode_audio4(ctx, fr, got_frame, pkt);
+ if (result < 0) {
+ av_log(NULL, AV_LOG_ERROR, "Error decoding frame\n");
+ return result;
+ }
+ length_read += result;
+ if (*got_frame) {
+ number_of_written_bytes = fr->nb_samples * av_get_bytes_per_sample(fr->format);
+ if (number_of_written_bytes < 0) {
+ av_log(NULL, AV_LOG_ERROR, "Can't copy image to buffer\n");
+ return number_of_written_bytes;
+ }
+ if (is_bitexact)
+ printf("%d, %10"PRId64", %10"PRId64", %8"PRId64", %8d, 0x%08lx\n",
+ stream, fr->pkt_pts, fr->pkt_dts, av_frame_get_pkt_duration(fr),
+ number_of_written_bytes, av_adler32_update(0, (const uint8_t*)fr->data[0], number_of_written_bytes));
+ else {
+ if (ctx->sample_fmt != AV_SAMPLE_FMT_S16) {
+ result = resample_and_print_data(ctx, fr, sample_fmt);
+ if (result)
+ return -1;
+ }
+ else
+ fwrite(fr->data[0], 1, number_of_written_bytes, stdout);
+ }
+ }
+ } while (length_read < pkt->size);
+
+ av_frame_free(&fr);
+
+ return 0;
+}
+
+
+static int decode_test(const char *input_filename, int is_bitexact, int type, int sample_fmt, char *codec_name)
+{
+ AVCodec *codec = NULL;
+ AVCodecContext *origin_ctx = NULL, *ctx= NULL;
+ AVPacket pkt;
+ AVFormatContext *fmt_ctx = NULL;
+ int stream;
+ int got_frame = 0;
+ int result;
+ int end_of_stream = 0;
+ int i = 0;
+
+ result = avformat_open_input(&fmt_ctx, input_filename, NULL, NULL);
+ if (result < 0) {
+ av_log(NULL, AV_LOG_ERROR, "Can't open file\n");
+ return result;
+ }
+
+ result = avformat_find_stream_info(fmt_ctx, NULL);
+ if (result < 0) {
+ av_log(NULL, AV_LOG_ERROR, "Can't get stream info\n");
+ return result;
+ }
+
+ stream = av_find_best_stream(fmt_ctx, type, -1, -1, NULL, 0);
+ if (stream < 0) {
+ av_log(NULL, AV_LOG_ERROR, "Can't find video/audio stream in input file\n");
+ return -1;
+ }
+
+ origin_ctx = fmt_ctx->streams[stream]->codec;
+
+
+ if (!strcmp(codec_name, ""))
+ codec = avcodec_find_decoder(origin_ctx->codec_id);
+ else
+ codec = avcodec_find_decoder_by_name(codec_name);
+ if (!codec) {
+ av_log(NULL, AV_LOG_ERROR, "Can't find decoder\n");
+ return -1;
+ }
+
+ ctx = avcodec_alloc_context3(codec);
+ if (!ctx) {
+ av_log(NULL, AV_LOG_ERROR, "Can't allocate decoder context\n");
+ return AVERROR(ENOMEM);
+ }
+
+ result = avcodec_copy_context(ctx, origin_ctx);
+ if (result) {
+ av_log(NULL, AV_LOG_ERROR, "Can't copy decoder context\n");
+ return result;
+ }
+
+ if (is_bitexact)
+ ctx->flags |= AV_CODEC_FLAG_BITEXACT;
+
+ result = avcodec_open2(ctx, codec, NULL);
+ if (result < 0) {
+ av_log(ctx, AV_LOG_ERROR, "Can't open decoder\n");
+ return result;
+ }
+
+ if (is_bitexact)
+ printf("#tb %d: %d/%d\n", stream, fmt_ctx->streams[stream]->time_base.num, fmt_ctx->streams[stream]->time_base.den);
+
+ i = 0;
+ av_init_packet(&pkt);
+ do {
+ if (!end_of_stream)
+ if (av_read_frame(fmt_ctx, &pkt) < 0)
+ end_of_stream = 1;
+ if (end_of_stream) {
+ pkt.data = NULL;
+ pkt.size = 0;
+ }
+ if (pkt.stream_index == stream || end_of_stream) {
+ got_frame = 0;
+ if (pkt.pts == AV_NOPTS_VALUE)
+ pkt.pts = pkt.dts = i;
+
+ if (type == AVMEDIA_TYPE_VIDEO) {
+ result = decode_video(&pkt, ctx, is_bitexact, i, &got_frame, stream);
+ if (result)
+ return -1;
+ }
+ else if (type == AVMEDIA_TYPE_AUDIO) {
+ result = decode_audio(&pkt, ctx, is_bitexact, i, &got_frame, sample_fmt, stream);
+ if (result)
+ return -1;
+ }
+ else {
+ av_log(NULL, AV_LOG_ERROR, "OOOPS, something went wrong in developer's logic");
+ return -1;
+ }
+ av_free_packet(&pkt);
+ av_init_packet(&pkt);
+ }
+ i++;
+ } while (!end_of_stream || got_frame);
+
+ av_free_packet(&pkt);
+ avcodec_close(ctx);
+ avformat_close_input(&fmt_ctx);
+ avcodec_free_context(&ctx);
+
+ return 0;
+}
+
+
+int main(int argc, char **argv)
+{
+ int result;
+ int sample_fmt = -1;
+ int media_type = -1;
+ int is_bitexact = 0;
+ char codec_name[30];
+ int i;
+
+ strcpy(codec_name, "");
+
+ if (argc < 4 || argc > 6) {
+ av_log(NULL, AV_LOG_ERROR, "Incorrect input\nFormat: %s <input filename> <type>(audio/video) <sample_fmt>(s16/f32) [is_bitexact] [special codec name]", argv[0]);
+ return 1;
+ }
+
+ if (!strcmp(argv[2], "video"))
+ media_type = AVMEDIA_TYPE_VIDEO;
+ else if (!strcmp(argv[2], "audio")) {
+ media_type = AVMEDIA_TYPE_AUDIO;
+ for (i = 3; i < argc; i++) {
+ if (!strcmp(argv[3], "s16")) {
+ sample_fmt = AV_SAMPLE_FMT_S16;
+ break;
+ }
+ else if (!strcmp(argv[3], "f32")) {
+ sample_fmt = AV_SAMPLE_FMT_FLT;
+ break;
+ }
+ }
+ if (sample_fmt == -1) {
+ av_log(NULL, AV_LOG_ERROR, "Incorrect input\nFormat: %s <input filename> <type>(audio/video) <sample_fmt>(s16/f32) [is_bitexact] [special codec name]", argv[0]);
+ return 1;
+ }
+ }
+ else {
+ av_log(NULL, AV_LOG_ERROR, "Incorrect input\nFormat: %s <input filename> <type>(audio/video) <sample_fmt>(s16/f32) [is_bitexact] [special codec name]", argv[0]);
+ return 1;
+ }
+
+ for (i = 3; i < argc; i++)
+ if (!strcmp(argv[i], "bitexact")) {
+ is_bitexact = 1;
+ break;
+ }
+
+ for (i = 3; i < argc; i++)
+ if (strcmp(argv[i], "bitexact") && strcmp(argv[i], "f32") && strcmp(argv[i], "s16")) {
+ strcpy(codec_name, argv[i]);
+ break;
+ }
+
+ av_register_all();
+
+ result = decode_test(argv[1], is_bitexact, media_type, sample_fmt, codec_name);
+ if (result)
+ return 1;
+
+ return 0;
+}
diff --git a/tests/api/api-h264-test.c b/tests/api/api-h264-test.c
deleted file mode 100644
index e4bc0b8..0000000
--- a/tests/api/api-h264-test.c
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
- * Copyright (c) 2015 Ludmila Glinskih
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-/**
- * H264 codec test.
- */
-
-#include "libavutil/adler32.h"
-#include "libavcodec/avcodec.h"
-#include "libavformat/avformat.h"
-#include "libavutil/imgutils.h"
-
-static int video_decode_example(const char *input_filename)
-{
- AVCodec *codec = NULL;
- AVCodecContext *origin_ctx = NULL, *ctx= NULL;
- AVFrame *fr = NULL;
- uint8_t *byte_buffer = NULL;
- AVPacket pkt;
- AVFormatContext *fmt_ctx = NULL;
- int number_of_written_bytes;
- int video_stream;
- int got_frame = 0;
- int byte_buffer_size;
- int i = 0;
- int result;
- int end_of_stream = 0;
-
- result = avformat_open_input(&fmt_ctx, input_filename, NULL, NULL);
- if (result < 0) {
- av_log(NULL, AV_LOG_ERROR, "Can't open file\n");
- return result;
- }
-
- result = avformat_find_stream_info(fmt_ctx, NULL);
- if (result < 0) {
- av_log(NULL, AV_LOG_ERROR, "Can't get stream info\n");
- return result;
- }
-
- video_stream = av_find_best_stream(fmt_ctx, AVMEDIA_TYPE_VIDEO, -1, -1, NULL, 0);
- if (video_stream < 0) {
- av_log(NULL, AV_LOG_ERROR, "Can't find video stream in input file\n");
- return -1;
- }
-
- origin_ctx = fmt_ctx->streams[video_stream]->codec;
-
- codec = avcodec_find_decoder(origin_ctx->codec_id);
- if (!codec) {
- av_log(NULL, AV_LOG_ERROR, "Can't find decoder\n");
- return -1;
- }
-
- ctx = avcodec_alloc_context3(codec);
- if (!ctx) {
- av_log(NULL, AV_LOG_ERROR, "Can't allocate decoder context\n");
- return AVERROR(ENOMEM);
- }
-
- result = avcodec_copy_context(ctx, origin_ctx);
- if (result) {
- av_log(NULL, AV_LOG_ERROR, "Can't copy decoder context\n");
- return result;
- }
-
- result = avcodec_open2(ctx, codec, NULL);
- if (result < 0) {
- av_log(ctx, AV_LOG_ERROR, "Can't open decoder\n");
- return result;
- }
-
- fr = av_frame_alloc();
- if (!fr) {
- av_log(NULL, AV_LOG_ERROR, "Can't allocate frame\n");
- return AVERROR(ENOMEM);
- }
-
- byte_buffer_size = av_image_get_buffer_size(ctx->pix_fmt, ctx->width, ctx->height, 16);
- byte_buffer = av_malloc(byte_buffer_size);
- if (!byte_buffer) {
- av_log(NULL, AV_LOG_ERROR, "Can't allocate buffer\n");
- return AVERROR(ENOMEM);
- }
-
- printf("#tb %d: %d/%d\n", video_stream, fmt_ctx->streams[video_stream]->time_base.num, fmt_ctx->streams[video_stream]->time_base.den);
- i = 0;
- av_init_packet(&pkt);
- do {
- if (!end_of_stream)
- if (av_read_frame(fmt_ctx, &pkt) < 0)
- end_of_stream = 1;
- if (end_of_stream) {
- pkt.data = NULL;
- pkt.size = 0;
- }
- if (pkt.stream_index == video_stream || end_of_stream) {
- got_frame = 0;
- if (pkt.pts == AV_NOPTS_VALUE)
- pkt.pts = pkt.dts = i;
- result = avcodec_decode_video2(ctx, fr, &got_frame, &pkt);
- if (result < 0) {
- av_log(NULL, AV_LOG_ERROR, "Error decoding frame\n");
- return result;
- }
- if (got_frame) {
- number_of_written_bytes = av_image_copy_to_buffer(byte_buffer, byte_buffer_size,
- (const uint8_t* const *)fr->data, (const int*) fr->linesize,
- ctx->pix_fmt, ctx->width, ctx->height, 1);
- if (number_of_written_bytes < 0) {
- av_log(NULL, AV_LOG_ERROR, "Can't copy image to buffer\n");
- return number_of_written_bytes;
- }
- printf("%d, %10"PRId64", %10"PRId64", %8"PRId64", %8d, 0x%08lx\n", video_stream,
- fr->pkt_pts, fr->pkt_dts, av_frame_get_pkt_duration(fr),
- number_of_written_bytes, av_adler32_update(0, (const uint8_t*)byte_buffer, number_of_written_bytes));
- }
- av_free_packet(&pkt);
- av_init_packet(&pkt);
- }
- i++;
- } while (!end_of_stream || got_frame);
-
- av_free_packet(&pkt);
- av_frame_free(&fr);
- avcodec_close(ctx);
- avformat_close_input(&fmt_ctx);
- avcodec_free_context(&ctx);
- av_freep(&byte_buffer);
- return 0;
-}
-
-int main(int argc, char **argv)
-{
- if (argc < 2)
- {
- av_log(NULL, AV_LOG_ERROR, "Incorrect input\n");
- return 1;
- }
-
- av_register_all();
-
- if (video_decode_example(argv[1]) != 0)
- return 1;
-
- return 0;
-}
diff --git a/tests/fate/api.mak b/tests/fate/api.mak
index 1d18653..dfe7034 100644
--- a/tests/fate/api.mak
+++ b/tests/fate/api.mak
@@ -10,9 +10,15 @@ fate-api-band: CMD = run $(APITESTSDIR)/api-band-test $(TARGET_SAMPLES)/mpeg4/re
fate-api-band: CMP = null
fate-api-band: REF = /dev/null
-FATE_API_SAMPLES_LIBAVFORMAT-$(call DEMDEC, H264, H264) += fate-api-h264
-fate-api-h264: $(APITESTSDIR)/api-h264-test$(EXESUF)
-fate-api-h264: CMD = run $(APITESTSDIR)/api-h264-test $(TARGET_SAMPLES)/h264-conformance/SVA_NL2_E.264
+FATE_API_SAMPLES_LIBAVFORMAT-$(call DEMDEC, H264, H264) += fate-api-decode-h264
+fate-api-decode-h264: $(APITESTSDIR)/api-decode-test$(EXESUF)
+fate-api-decode-h264: CMD = run $(APITESTSDIR)/api-decode-test $(TARGET_SAMPLES)/h264-conformance/SVA_NL2_E.264 video bitexact
+
+FATE_API_SAMPLES_LIBAVFORMAT-$(call DEMDEC, AVI, IMC) += fate-api-decode-imc
+fate-api-decode-imc: $(APITESTSDIR)/api-decode-test$(EXESUF)
+fate-api-decode-imc: CMD = run $(APITESTSDIR)/api-decode-test $(TARGET_SAMPLES)/imc/imc.avi audio s16
+fate-api-decode-imc: CMP = oneoff
+fate-api-decode-imc: REF = $(SAMPLES)/imc/imc.pcm
FATE_API_LIBAVFORMAT-yes += fate-api-seek
fate-api-seek: $(APITESTSDIR)/api-seek-test$(EXESUF) fate-lavf
diff --git a/tests/ref/fate/api-decode-h264 b/tests/ref/fate/api-decode-h264
new file mode 100644
index 0000000..e1b29f0
--- /dev/null
+++ b/tests/ref/fate/api-decode-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
diff --git a/tests/ref/fate/api-h264 b/tests/ref/fate/api-h264
deleted file mode 100644
index e1b29f0..0000000
--- a/tests/ref/fate/api-h264
+++ /dev/null
@@ -1,18 +0,0 @@
-#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
--
1.9.1
More information about the ffmpeg-devel
mailing list