[Mplayer-cvslog] CVS: main/mp3lib sr1.c,1.6,1.7

GEREOFFY arpi_esp at users.sourceforge.net
Wed Jun 20 00:07:21 CEST 2001


Update of /cvsroot/mplayer/main/mp3lib
In directory usw-pr-cvs1:/tmp/cvs-serv29392

Modified Files:
	sr1.c 
Log Message:
fr->sampling_frequency limitation (thanx to pl <p_l at tfz.net>)

Index: sr1.c
===================================================================
RCS file: /cvsroot/mplayer/main/mp3lib/sr1.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** sr1.c	2001/06/07 09:08:32	1.6
--- sr1.c	2001/06/19 22:07:19	1.7
***************
*** 197,200 ****
--- 197,202 ----
        fr->sampling_frequency = ((newhead>>10)&0x3) + (fr->lsf*3);
  
+     if(fr->sampling_frequency>8) return FALSE;  // valid: 0..8
+ 
      fr->error_protection = ((newhead>>16)&0x1)^0x1;
      fr->bitrate_index = ((newhead>>12)&0xf);


_______________________________________________
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