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

kmalaussene subversion at mplayerhq.hu
Sun Feb 22 22:39:47 CET 2009


Author: kmalaussene
Date: Sun Feb 22 22:39:46 2009
New Revision: 4124

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

Modified:
   amr/amrnbfloatdec.c

Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c	Sun Feb 22 20:55:14 2009	(r4123)
+++ amr/amrnbfloatdec.c	Sun Feb 22 22:39:46 2009	(r4124)
@@ -940,11 +940,10 @@ static int amrnb_decode_frame(AVCodecCon
         if(p->cur_frame_mode == MODE_122 || p->cur_frame_mode == MODE_795) {
             p->pitch_gain[4]     = qua_gain_pit [amr_subframe->p_gain];
             p->fixed_gain_factor = qua_gain_code[amr_subframe->fixed_gain];
-        }else if(p->cur_frame_mode == MODE_67 || p->cur_frame_mode == MODE_74 ||
-                 p->cur_frame_mode == MODE_102) {
+        }else if(p->cur_frame_mode <= MODE_67) {
             p->pitch_gain[4]     = gains_high[amr_subframe->p_gain][0];
             p->fixed_gain_factor = gains_high[amr_subframe->p_gain][1];
-        }else if(p->cur_frame_mode == MODE_515 || p->cur_frame_mode == MODE_59) {
+        }else if(p->cur_frame_mode <= MODE_515) {
             p->pitch_gain[4]     = gains_low[amr_subframe->p_gain][0];
             p->fixed_gain_factor = gains_low[amr_subframe->p_gain][1];
         }else {



More information about the FFmpeg-soc mailing list