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

kmalaussene subversion at mplayerhq.hu
Sun Feb 22 22:41:33 CET 2009


Author: kmalaussene
Date: Sun Feb 22 22:41:33 2009
New Revision: 4125

Log:
Fix previous commit, use >= instead of <=.

Modified:
   amr/amrnbfloatdec.c

Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c	Sun Feb 22 22:39:46 2009	(r4124)
+++ amr/amrnbfloatdec.c	Sun Feb 22 22:41:33 2009	(r4125)
@@ -940,10 +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) {
+        }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) {
+        }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