Browse Source

opus_pvq: fix uninitialized variable usage

Fixes CID1400586

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
tags/n3.3
Rostislav Pehlivanov 9 years ago
parent
commit
1b90e2414d
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      libavcodec/opus_pvq.c

+ 2
- 3
libavcodec/opus_pvq.c View File

@@ -857,8 +857,8 @@ uint32_t ff_celt_encode_band(CeltFrame *f, OpusRangeCoder *rc, const int band,
int dualstereo, split;
int imid = 0, iside = 0;
//uint32_t N0 = N;
int N_B;
//int N_B0;
int N_B = N / blocks;
//int N_B0 = N_B;
int B0 = blocks;
int time_divide = 0;
int recombine = 0;
@@ -867,7 +867,6 @@ uint32_t ff_celt_encode_band(CeltFrame *f, OpusRangeCoder *rc, const int band,
int longblocks = (B0 == 1);
uint32_t cm = 0;

//N_B0 = N_B = N / blocks;
split = dualstereo = (Y != NULL);

if (N == 1) {


Loading…
Cancel
Save