aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dca.c
diff options
context:
space:
mode:
authorGianluigi Tiesi <mplayer@netfarm.it>2011-02-01 04:12:26 +0000
committerMans Rullgard <mans@mansr.com>2011-02-01 12:38:30 +0000
commite86e858111501650bb9ce8e39282e20c57bac913 (patch)
tree7755a89162bef29fb0a325ef1140dca0f95e42cc /libavcodec/dca.c
parentf3619680a7b14415479376b2c35a481c8f43927e (diff)
downloadffmpeg-e86e858111501650bb9ce8e39282e20c57bac913.tar.gz
dca: avoid C99 declaration in for() expression
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/dca.c')
-rw-r--r--libavcodec/dca.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/dca.c b/libavcodec/dca.c
index 3861813556..3a3eb25d0b 100644
--- a/libavcodec/dca.c
+++ b/libavcodec/dca.c
@@ -1354,7 +1354,9 @@ static int dca_exss_mask2count(int mask)
*/
static void dca_exss_skip_mix_coeffs(GetBitContext *gb, int channels, int out_ch)
{
- for (int i = 0; i < channels; i++) {
+ int i;
+
+ for (i = 0; i < channels; i++) {
int mix_map_mask = get_bits(gb, out_ch);
int num_coeffs = av_popcount(mix_map_mask);
skip_bits_long(gb, num_coeffs * 6);