[FFmpeg-soc] [soc]: r4109 - amr/amrnbfloatdec.c

kmalaussene subversion at mplayerhq.hu
Sun Feb 22 01:35:09 CET 2009


Author: kmalaussene
Date: Sun Feb 22 01:35:09 2009
New Revision: 4109

Log:
Replace multiple == || by 1 <=.

Modified:
   amr/amrnbfloatdec.c

Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c	Sun Feb 22 01:30:41 2009	(r4108)
+++ amr/amrnbfloatdec.c	Sun Feb 22 01:35:09 2009	(r4109)
@@ -411,8 +411,7 @@ static void decode_pitch_lag(AMRContext 
             temp = (pitch_index + 5)/6 - 1;
             p->pitch_lag_int = temp + search_range_min;
             p->pitch_lag_frac = pitch_index - temp*6 - 3;
-        }else if( (p->cur_frame_mode == MODE_475) || (p->cur_frame_mode == MODE_515) ||
-            (p->cur_frame_mode == MODE_59)  || (p->cur_frame_mode == MODE_67) ) {
+        }else if(p->cur_frame_mode <= MODE_67) {
             // decoding with 4-bit resolution
             int t1_temp = FFMAX(FFMIN(p->prev_pitch_lag_int, search_range_max-4), search_range_min+5);
 



More information about the FFmpeg-soc mailing list