summaryrefslogtreecommitdiff
path: root/libswresample
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-04-26 23:48:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-26 23:48:57 +0200
commit76d376d99b1fd14df2092b51a6e9ed0c1d055edd (patch)
tree9cc6bf71567cd6a2fd0471ffe1af8a98654e28bd /libswresample
parentf75169b2511fc1f08bfd632856db18145d234a38 (diff)
swr-test: fix declaration statement ordering.
swr-test is now warning free. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample')
-rw-r--r--libswresample/swresample_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswresample/swresample_test.c b/libswresample/swresample_test.c
index c1f1eda9f8..d475e56528 100644
--- a/libswresample/swresample_test.c
+++ b/libswresample/swresample_test.c
@@ -262,6 +262,8 @@ int main(int argc, char **argv){
char in_layout_string[256];
char out_layout_string[256];
unsigned vector= remaining_tests[max_tests - test - 1];
+ int in_ch_count;
+ int out_count, mid_count, out_ch_count;
in_ch_layout = layouts[vector % FF_ARRAY_ELEMS(layouts)]; vector /= FF_ARRAY_ELEMS(layouts);
out_ch_layout = layouts[vector % FF_ARRAY_ELEMS(layouts)]; vector /= FF_ARRAY_ELEMS(layouts);
@@ -270,9 +272,7 @@ int main(int argc, char **argv){
out_sample_rate = rates [vector % FF_ARRAY_ELEMS(rates )]; vector /= FF_ARRAY_ELEMS(rates);
av_assert0(!vector);
- int in_ch_count;
in_ch_count= av_get_channel_layout_nb_channels(in_ch_layout);
- int out_count, mid_count, out_ch_count;
out_ch_count= av_get_channel_layout_nb_channels(out_ch_layout);
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);