diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-09 18:28:40 -0500 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-09 18:28:40 -0500 |
commit | ca6fac041bc6ffe4a8b21eb6ee429dd32d803764 (patch) | |
tree | 1f2a30d22bf28b82c2168f65afe0e9c4856b30ec /src/opus_decoder.c | |
parent | a599ccd2172c159cb690a8b446bb4b3986d594fb (diff) | |
download | opus-ca6fac041bc6ffe4a8b21eb6ee429dd32d803764.tar.gz |
Fixes some minor issues found by scan build
Diffstat (limited to 'src/opus_decoder.c')
-rw-r--r-- | src/opus_decoder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/opus_decoder.c b/src/opus_decoder.c index fc6f7b04..e7964e3d 100644 --- a/src/opus_decoder.c +++ b/src/opus_decoder.c @@ -297,8 +297,8 @@ static int opus_decode_frame(OpusDecoder *st, const unsigned char *data, } } - pcm_transition_silk_size = 0; - pcm_transition_celt_size = 0; + pcm_transition_silk_size = ALLOC_NONE; + pcm_transition_celt_size = ALLOC_NONE; if (data!=NULL && st->prev_mode > 0 && ( (mode == MODE_CELT_ONLY && st->prev_mode != MODE_CELT_ONLY && !st->prev_redundancy) || (mode != MODE_CELT_ONLY && st->prev_mode == MODE_CELT_ONLY) ) @@ -327,7 +327,7 @@ static int opus_decode_frame(OpusDecoder *st, const unsigned char *data, } /* Don't allocate any memory when in CELT-only mode */ - pcm_silk_size = (mode != MODE_CELT_ONLY) ? IMAX(F10, frame_size)*st->channels : 0; + pcm_silk_size = (mode != MODE_CELT_ONLY) ? IMAX(F10, frame_size)*st->channels : ALLOC_NONE; ALLOC(pcm_silk, pcm_silk_size, opus_int16); /* SILK processing */ |