aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/opus_pvq.c
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2017-02-15 21:11:41 +0000
committerRostislav Pehlivanov <atomnuker@gmail.com>2017-02-15 21:11:41 +0000
commit1b90e2414df070d4ea7d12f300c4a950d3ecc975 (patch)
tree0f07cf5610aa5cca2c02579a629576684119d5cf /libavcodec/opus_pvq.c
parent449ce456a6c9c9dda70be04aa7aa45025732f563 (diff)
downloadffmpeg-1b90e2414df070d4ea7d12f300c4a950d3ecc975.tar.gz
opus_pvq: fix uninitialized variable usage
Fixes CID1400586 Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/opus_pvq.c')
-rw-r--r--libavcodec/opus_pvq.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/opus_pvq.c b/libavcodec/opus_pvq.c
index a2f5088aa9..4197ccd3ad 100644
--- a/libavcodec/opus_pvq.c
+++ b/libavcodec/opus_pvq.c
@@ -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) {