Browse Source

avcodec/opusenc_psy: Fix mixed declaration and statement

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.4
Michael Niedermayer 8 years ago
parent
commit
74d2bbb70d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/opusenc_psy.c

+ 2
- 1
libavcodec/opusenc_psy.c View File

@@ -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);
}


Loading…
Cancel
Save