diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-10-11 02:13:16 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-10-11 02:13:16 +0200 |
commit | 74d2bbb70dbe4b05dfc4ce54a5e4f7bf1f765ee5 (patch) | |
tree | 950da329f7f09f69aa1297a9177a1b5509ebd135 | |
parent | 92ae4ab56d0d8ce2875d991e1af95970f7f7fb6c (diff) | |
download | ffmpeg-74d2bbb70dbe4b05dfc4ce54a5e4f7bf1f765ee5.tar.gz |
avcodec/opusenc_psy: Fix mixed declaration and statement
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/opusenc_psy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/opusenc_psy.c b/libavcodec/opusenc_psy.c index bb673bef68..b446d41f75 100644 --- a/libavcodec/opusenc_psy.c +++ b/libavcodec/opusenc_psy.c @@ -370,8 +370,9 @@ static int celt_search_for_tf(OpusPsyContext *s, OpusPsyStep **start, CeltFrame for (cway = 0; cway < 2; cway++) { int mag[2]; int base = f->transient ? 120 : 960; + int i; - for (int i = 0; i < 2; i++) { + for (i = 0; i < 2; i++) { int c = ff_celt_tf_select[f->size][f->transient][cway][i]; mag[i] = c < 0 ? base >> FFABS(c) : base << FFABS(c); } |