[Mplayer-cvslog] CVS: main/mp3lib layer2.c,1.2,1.3
Arpi of Ize
arpi at mplayerhq.hu
Tue Jan 28 01:25:41 CET 2003
Update of /cvsroot/mplayer/main/mp3lib
In directory mail:/var/tmp.root/cvs-serv7026
Modified Files:
layer2.c
Log Message:
In mp3lib/sr1.c, look at the line 226:
if(fr->sampling_frequency>8) return FALSE; // valid: 0..8
which allows fr->sampling_frequency to go up to 8.
Obviously, the code does not bother about what would happen if
fr->sampling_frequency lies in the range [3,8].
patch from Nilmoni Deb, Nick?, Rich
Index: layer2.c
===================================================================
RCS file: /cvsroot/mplayer/main/mp3lib/layer2.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- layer2.c 29 Jun 2001 17:53:53 -0000 1.2
+++ layer2.c 28 Jan 2003 00:25:38 -0000 1.3
@@ -235,13 +235,28 @@
static void II_select_table(struct frame *fr)
{
- static int translate[3][2][16] =
- { { { 0,2,2,2,2,2,2,0,0,0,1,1,1,1,1,0 } ,
- { 0,2,2,0,0,0,1,1,1,1,1,1,1,1,1,0 } } ,
- { { 0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0 } ,
- { 0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0 } } ,
- { { 0,3,3,3,3,3,3,0,0,0,1,1,1,1,1,0 } ,
- { 0,3,3,0,0,0,1,1,1,1,1,1,1,1,1,0 } } };
+ static int translate[8][2][16] =
+ { { { 0,2,2,2,2,2,2,0,0,0,1,1,1,1,1,0 } , /*44.1 stereo*/
+ { 0,2,2,0,0,0,1,1,1,1,1,1,1,1,1,0 } } , /*44.1 mono*/
+ { { 0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0 } , /*48 stereo*/
+ { 0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0 } } , /*48 mono*/
+ { { 0,3,3,3,3,3,3,0,0,0,1,1,1,1,1,0 } , /*32 stereo*/
+ { 0,3,3,0,0,0,1,1,1,1,1,1,1,1,1,0 } } , /*32 mono*/
+ { { 2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,0 } , /*22.05 stereo*/
+ { 2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,0 } } , /*22.05 mono*/
+ { { 2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,0 } , /*24 stereo*/
+ { 2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,0 } } , /*24 mono*/
+ { { 2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,0 } , /*16 stereo*/
+ { 2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,0 } } , /*16 mono*/
+ { { 2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,0 } , /*11.025 stereo*/
+ { 2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,0 } } , /*11.025 mono*/
+ { { 2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,0 } , /*12 stereo*/
+ { 2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,0 } } , /*12 mono*/
+ { { 2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,0 } , /*8 stereo*/
+ { 2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,0 } } /*8 mono*/
+/* 0 48 64 96 128 192 256 384 */
+/* 32 56 80 112 160 224 320 XX*/
+ };
int table,sblim;
static struct al_table *tables[5] =
More information about the MPlayer-cvslog
mailing list