[Mplayer-cvslog] CVS: main/libac3 imdct.c,1.4,1.5

Felix Buenemann atmosfear at users.sourceforge.net
Wed Jun 13 17:17:12 CEST 2001


Update of /cvsroot/mplayer/main/libac3
In directory usw-pr-cvs1:/tmp/cvs-serv31888

Modified Files:
	imdct.c 
Log Message:
Added possibly missing loop as suggested by Jürgen Keil, please verify.


Index: imdct.c
===================================================================
RCS file: /cvsroot/mplayer/main/libac3/imdct.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** imdct.c	2001/06/09 08:50:48	1.4
--- imdct.c	2001/06/13 15:17:10	1.5
***************
*** 193,202 ****
  	for (i=0; i< 64; i++) {
  		*data_ptr++   = -buf[64+i].im   * *window_ptr++ + *delay_ptr++;
! 		*data_ptr++   = buf[64-i-1].re * *window_ptr++ + *delay_ptr++;
  	}
  
  	for(i=0; i< 64; i++) {
  		*data_ptr++  = -buf[i].re       * *window_ptr++ + *delay_ptr++;
! 		*data_ptr++  = buf[128-i-1].im * *window_ptr++ + *delay_ptr++;
  	}
  
--- 193,202 ----
  	for (i=0; i< 64; i++) {
  		*data_ptr++   = -buf[64+i].im   * *window_ptr++ + *delay_ptr++;
! 		*data_ptr++   =  buf[64-i-1].re * *window_ptr++ + *delay_ptr++;
  	}
  
  	for(i=0; i< 64; i++) {
  		*data_ptr++  = -buf[i].re       * *window_ptr++ + *delay_ptr++;
! 		*data_ptr++  =  buf[128-i-1].im * *window_ptr++ + *delay_ptr++;
  	}
  
***************
*** 270,276 ****
         /* Window and convert to real valued signal, no overlap here*/
          for(i=0; i< 64; i++) {
!                *data_ptr++   = -buf[64+i].im   * *window_ptr++;
!                *data_ptr++   = buf[64-i-1].re * *window_ptr++;
          }
  
          /* The trailing edge of the window goes into the delay line */
--- 270,282 ----
         /* Window and convert to real valued signal, no overlap here*/
          for(i=0; i< 64; i++) {
! 		*data_ptr++   = -buf[64+i].im   * *window_ptr++;
! 		*data_ptr++   =  buf[64-i-1].re * *window_ptr++;
          }
+ 
+ 	for(i=0; i< 64; i++) {
+ 		*data_ptr++  = -buf[i].re       * *window_ptr++;
+ 		*data_ptr++  =  buf[128-i-1].im * *window_ptr++;
+ 	}
+ 
  
          /* The trailing edge of the window goes into the delay line */


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list