summaryrefslogtreecommitdiff
path: root/src/opus_decoder.c
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2013-11-09 18:28:40 -0500
committerJean-Marc Valin <jmvalin@jmvalin.ca>2013-11-09 18:28:40 -0500
commitca6fac041bc6ffe4a8b21eb6ee429dd32d803764 (patch)
tree1f2a30d22bf28b82c2168f65afe0e9c4856b30ec /src/opus_decoder.c
parenta599ccd2172c159cb690a8b446bb4b3986d594fb (diff)
downloadopus-ca6fac041bc6ffe4a8b21eb6ee429dd32d803764.tar.gz
Fixes some minor issues found by scan build
Diffstat (limited to 'src/opus_decoder.c')
-rw-r--r--src/opus_decoder.c6
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 */