[pkg-mad-maintainers] Bug#197726: Bug#197726: Processed: Re: mpg321: displays wrong MPEG version
Kurt Roeckx
kurt at roeckx.be
Wed Dec 10 20:21:16 UTC 2008
On Wed, Nov 26, 2008 at 02:37:29PM -0500, Diego Escalante Urrelo wrote:
> On 11/26/08, brian m. carlson <sandals at crustytoothpaste.ath.cx> wrote:
> > Playing MPEG stream from css_descramble.mp3 ...
> > MPEG 1.0 layer III, 64 kbit/s, 22050 Hz joint-stereo
> > ^C
> > [0:05] Decoding of css_descramble.mp3 finished.
> > lakeview ok % file css_descramble.mp3 css_descramble.mp3: MPEG ADTS, layer
> > III, v2, 64 kbps, 22.05 kHz, JntStereo
> >
>
> I checked mpg321's code again. It's hardcoding the MPEG 1.0 part. A
> look at mad's struct from where the other info is retrieved didn't
> revealed a way to get the MPEG 1.0/2.0 info.
It the struct mad_header is a member called "flags". If the bit
MAD_FLAG_MC_EXT is set it's MPEG 2.0, if MAD_FLAG_MPEG_2_5_EXT is
set it's MPEG 2.5. Otherwise it's MPEG 1.0.
Kurt
More information about the pkg-mad-maintainers
mailing list