[FFmpeg-soc] [soc]: r1304 - amr/amrnbdec.c

superdump subversion at mplayerhq.hu
Sat Sep 8 20:23:17 CEST 2007


Author: superdump
Date: Sat Sep  8 20:23:17 2007
New Revision: 1304

Log:
Missed this shortcut

Modified:
   amr/amrnbdec.c

Modified: amr/amrnbdec.c
==============================================================================
--- amr/amrnbdec.c	(original)
+++ amr/amrnbdec.c	Sat Sep  8 20:23:17 2007
@@ -668,7 +668,7 @@ static void decode_pitch_lag_6(AVCodecCo
     // are used
 
     // subframe 1 or 3
-    if((p->cur_subframe == 1) || (p->cur_subframe == 3)) {
+    if(p->cur_subframe & 1) {
         if(pitch_index < 463){
             *pitch_lag_int = (pitch_index + 5)/6 + 17;
             *pitch_lag_frac = pitch_index - *pitch_lag_int*6 + 105;



More information about the FFmpeg-soc mailing list