[MPlayer-dev-eng] [PATCH] Support layers 1 and 2 in mp3 demuxer
Diego Biurrun
diego at biurrun.de
Fri Apr 1 10:53:23 CEST 2005
On Sun, Mar 06, 2005 at 06:30:34PM +0100, Nico Sabbi wrote:
> Nico Sabbi wrote:
>
> >This one is simpler and practically doesn't change how mp3s are treated.
> >
> >--- 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.
Will you commit this? It's probably hard to get it tested otherwise :-/
Diego
More information about the MPlayer-dev-eng
mailing list