aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-03 00:40:15 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-03 00:40:15 +0100
commitebe4d5adc5a9ab9cd61f873b63099d42383ef117 (patch)
tree8392d2306053df48631513b103a73d40ffd614bd
parent208bcc6b5b3f3b4c73c6073e7e64839f6c5e90ec (diff)
downloadffmpeg-ebe4d5adc5a9ab9cd61f873b63099d42383ef117.tar.gz
swr-test_: Fix mixed declaration and statements:
swresample_test.c:123:21: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] swresample_test.c:127:25: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libswresample/swresample_test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libswresample/swresample_test.c b/libswresample/swresample_test.c
index 363614780b..fa7422d7df 100644
--- a/libswresample/swresample_test.c
+++ b/libswresample/swresample_test.c
@@ -119,12 +119,13 @@ int main(int argc, char **argv){
for(in_sample_fmt= AV_SAMPLE_FMT_U8; in_sample_fmt<=AV_SAMPLE_FMT_DBL; in_sample_fmt++){
for(out_sample_fmt= AV_SAMPLE_FMT_U8; out_sample_fmt<=AV_SAMPLE_FMT_DBL; out_sample_fmt++){
for(in_ch_layout_index=0; layouts[in_ch_layout_index]; in_ch_layout_index++){
+ int in_ch_count;
in_ch_layout= layouts[in_ch_layout_index];
- int in_ch_count= av_get_channel_layout_nb_channels(in_ch_layout);
+ in_ch_count= av_get_channel_layout_nb_channels(in_ch_layout);
for(out_ch_layout_index=0; layouts[out_ch_layout_index]; out_ch_layout_index++){
- int out_count, mid_count;
+ int out_count, mid_count, out_ch_count;
out_ch_layout= layouts[out_ch_layout_index];
- int out_ch_count= av_get_channel_layout_nb_channels(out_ch_layout);
+ out_ch_count= av_get_channel_layout_nb_channels(out_ch_layout);
fprintf(stderr, "ch %d->%d, rate:%5d->%5d, fmt:%s->%s",
in_ch_count, out_ch_count,
in_sample_rate, out_sample_rate,