Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/celt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <Jean-Marc.Valin@csiro.au>2008-02-11 08:44:48 +0300
committerJean-Marc Valin <Jean-Marc.Valin@csiro.au>2008-02-11 08:44:48 +0300
commitcb7a2a3d52f562792c2efe81b204048ef9a5065c (patch)
tree44098764f554175ffa7225ba8310b502f1a64b99 /libcelt/modes.c
parent6c1f60494408fb4fd70ae4f6a1c788489bcc9c21 (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.c3
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;
}