[FFmpeg-soc] [soc]: r4070 - amr/amrnbfloatdec.c
kmalaussene
subversion at mplayerhq.hu
Tue Feb 17 19:43:23 CET 2009
Author: kmalaussene
Date: Tue Feb 17 19:43:20 2009
New Revision: 4070
Log:
Clarify assert.
Modified:
amr/amrnbfloatdec.c
Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c Tue Feb 17 19:38:26 2009 (r4069)
+++ amr/amrnbfloatdec.c Tue Feb 17 19:43:20 2009 (r4070)
@@ -622,6 +622,8 @@ static void decode_10_pulses_35bits(cons
static void decode_fixed_vector(float *fixed_vector, const uint16_t *pulses,
const enum Mode mode, const int subframe)
{
+ assert(MODE_475 <= mode && mode <= MODE_122);
+
if (mode == MODE_122) {
decode_10_pulses_35bits(pulses, fixed_vector);
}else if(mode == MODE_102) {
@@ -673,8 +675,6 @@ static void decode_fixed_vector(float *f
pulse_subset = (fixed_index >> 9) & 1;
// third pulse position is Gray coded in bits 11-13
pulse_position[3] = gray_decode[(fixed_index >> 10) & 7]*5 + pulse_subset + 3;
- }else {
- assert(NULL);
}
// reconstruct the fixed code
More information about the FFmpeg-soc
mailing list