diff options
author | Jean-Marc Valin <Jean-Marc.Valin@csiro.au> | 2008-02-11 08:44:48 +0300 |
---|---|---|
committer | Jean-Marc Valin <Jean-Marc.Valin@csiro.au> | 2008-02-11 08:44:48 +0300 |
commit | cb7a2a3d52f562792c2efe81b204048ef9a5065c (patch) | |
tree | 44098764f554175ffa7225ba8310b502f1a64b99 /libcelt/modes.c | |
parent | 6c1f60494408fb4fd70ae4f6a1c788489bcc9c21 (diff) |
Re-ordered the parameters in the stream: [energy, pitch index, pitch gains]
Also fixed a bug that was exposed by the change (and removed some warnings)
Diffstat (limited to 'libcelt/modes.c')
-rw-r--r-- | libcelt/modes.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcelt/modes.c b/libcelt/modes.c index a841ec5..2ad27b8 100644 --- a/libcelt/modes.c +++ b/libcelt/modes.c @@ -160,6 +160,9 @@ int celt_mode_info(const CELTMode *mode, int request, celt_int32_t *value) case CELT_GET_NB_CHANNELS: *value = mode->nbChannels; break; + default: + return CELT_BAD_ARG; } + return CELT_OK; } |