From b1519102f119a85decfcdd68815366edc10c7864 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 26 Apr 2012 09:57:02 +0200 Subject: [PATCH] swr-test: add rates tables containing a new set of sample rates. Signed-off-by: Michael Niedermayer --- libswresample/swresample_test.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/libswresample/swresample_test.c b/libswresample/swresample_test.c index 1742bd7e72..3bea91fe45 100644 --- a/libswresample/swresample_test.c +++ b/libswresample/swresample_test.c @@ -93,6 +93,15 @@ static const enum AVSampleFormat formats[] = { AV_SAMPLE_FMT_DBL, }; +static const int rates[] = { + 8000, + 11025, + 16000, + 22050, + 32000, + 48000, +}; + uint64_t layouts[]={ AV_CH_LAYOUT_MONO , AV_CH_LAYOUT_STEREO , @@ -128,7 +137,6 @@ int main(int argc, char **argv){ int in_sample_rate, out_sample_rate, ch ,i, in_ch_layout_index, out_ch_layout_index, osr, flush_count; uint64_t in_ch_layout, out_ch_layout; enum AVSampleFormat in_sample_fmt, out_sample_fmt; - int sample_rates[]={8000,11025,16000,22050,32000}; uint8_t array_in[SAMPLES*8*8]; uint8_t array_mid[SAMPLES*8*8*3]; uint8_t array_out[SAMPLES*8*8+100]; @@ -142,8 +150,8 @@ int main(int argc, char **argv){ struct SwrContext *backw_ctx= NULL; in_sample_rate=16000; - for(osr=0; osr<5; osr++){ - out_sample_rate= sample_rates[osr]; + for(osr=0; osr