From 5347b9da985d206f632b84d8991d98bbe3153f7c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 26 Apr 2012 12:17:29 +0200 Subject: [PATCH] swr-test: print channel layout, instead of just channel counts Signed-off-by: Michael Niedermayer --- libswresample/swresample_test.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libswresample/swresample_test.c b/libswresample/swresample_test.c index e64f804a31..f054a6f406 100644 --- a/libswresample/swresample_test.c +++ b/libswresample/swresample_test.c @@ -181,6 +181,8 @@ int main(int argc, char **argv){ qsort(remaining_tests + max_tests - num_tests, num_tests, sizeof(remaining_tests[0]), cmp); in_sample_rate=16000; for(test=0; test%d, rate:%5d->%5d, fmt:%s->%s\n", - in_ch_count, out_ch_count, + av_get_channel_layout_string( in_layout_string, sizeof( in_layout_string), in_ch_count, in_ch_layout); + av_get_channel_layout_string(out_layout_string, sizeof(out_layout_string), out_ch_count, out_ch_layout); + fprintf(stderr, "TEST: %s->%s, rate:%5d->%5d, fmt:%s->%s\n", + in_layout_string, out_layout_string, in_sample_rate, out_sample_rate, av_get_sample_fmt_name(in_sample_fmt), av_get_sample_fmt_name(out_sample_fmt)); forw_ctx = swr_alloc_set_opts(forw_ctx, out_ch_layout, av_get_alt_sample_fmt(out_sample_fmt, 1), out_sample_rate,