[FFmpeg-soc] [soc]: r4071 - amr/amrnbfloatdec.c
kmalaussene
subversion at mplayerhq.hu
Tue Feb 17 19:45:52 CET 2009
Author: kmalaussene
Date: Tue Feb 17 19:45:52 2009
New Revision: 4071
Log:
Remove unnecessary if; fix a compiler warning as a bonus:
'pulse_nb' may be used uninitialized in this function.
Modified:
amr/amrnbfloatdec.c
Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c Tue Feb 17 19:43:20 2009 (r4070)
+++ amr/amrnbfloatdec.c Tue Feb 17 19:45:52 2009 (r4071)
@@ -663,7 +663,7 @@ static void decode_fixed_vector(float *f
pulse_subset = (fixed_index >> 7) & 1;
// third pulse position is coded in bits 9-11
pulse_position[2] = ((fixed_index >> 8) & 7)*5 + (pulse_subset<<1) + 2;
- }else if(mode <= MODE_795) {
+ }else { // mode <= MODE_795
pulse_nb = 4;
// first pulse position is Gray coded in bits 1-3
pulse_position[0] = gray_decode[ fixed_index & 7]*5;
More information about the FFmpeg-soc
mailing list