[MPlayer-dev-eng] [PATCH] Support layers 1 and 2 in mp3 demuxer

Nico Sabbi nsabbi at tiscali.it
Sun Mar 6 18:30:34 CET 2005


Nico Sabbi wrote:

>
> This one is simpler and practically doesn't change how mp3s are treated.
>
>    Nico
>
>------------------------------------------------------------------------
>
>Index: mp3_hdr.c
>===================================================================
>RCS file: /cvsroot/mplayer/main/libmpdemux/mp3_hdr.c,v
>retrieving revision 1.8
>diff -c -u -r1.8 mp3_hdr.c
>--- mp3_hdr.c	4 Jul 2003 21:04:14 -0000	1.8
>+++ mp3_hdr.c	6 Mar 2005 11:53:02 -0000
>@@ -36,6 +36,7 @@
>  */
> int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* srate){
>     int stereo,ssize,lsf,framesize,padding,bitrate_index,sampling_frequency;
>+    int layer, mult[3] = { 12000, 144000, 144000 };
>  
>

another correction: that 12000 should be 48000.
With this change mp1 plays well, too.




More information about the MPlayer-dev-eng mailing list