diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-26 10:35:45 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-26 15:37:41 +0200 |
commit | 69f3af9590c5c3f320df62b35fa1dd5c20de5b97 (patch) | |
tree | 9d3d56633719c6bb5b7371efe1d9cba1c88ad4d5 /libswresample | |
parent | b1519102f119a85decfcdd68815366edc10c7864 (diff) |
swr-test: remove 0 terminator in layouts for consistency
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample')
-rw-r--r-- | libswresample/swresample_test.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libswresample/swresample_test.c b/libswresample/swresample_test.c index 3bea91fe45..043ff6bf0e 100644 --- a/libswresample/swresample_test.c +++ b/libswresample/swresample_test.c @@ -117,7 +117,6 @@ uint64_t layouts[]={ AV_CH_LAYOUT_7POINT0 , AV_CH_LAYOUT_7POINT1 , AV_CH_LAYOUT_7POINT1_WIDE , -0 }; static void setup_array(uint8_t *out[SWR_CH_MAX], uint8_t *in, enum AVSampleFormat format, int samples){ @@ -154,11 +153,11 @@ int main(int argc, char **argv){ out_sample_rate= rates[osr]; 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++){ + for(in_ch_layout_index=0; in_ch_layout_index < FF_ARRAY_ELEMS(layouts); in_ch_layout_index++){ int in_ch_count; in_ch_layout= layouts[in_ch_layout_index]; 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++){ + for(out_ch_layout_index=0; out_ch_layout_index < FF_ARRAY_ELEMS(layouts); out_ch_layout_index++){ int out_count, mid_count, out_ch_count; out_ch_layout= layouts[out_ch_layout_index]; out_ch_count= av_get_channel_layout_nb_channels(out_ch_layout); |