[MPlayer-dev-eng] Re: [Mplayer-cvslog] CVS: main/DOCS/en codecs.html,1.124,1.125

Moritz Bunkus moritz at bunkus.org
Mon Sep 1 12:56:22 CEST 2003


Hi Nico,

> please, can you tell me what parameters should be passed to libfaad to 
> make it correctly decode a stream
> (layer and the likes)?
> Whatever I pass it from  my demuxer it only plays very 'relented'
> sounds.

Have a look at libmpdemux/demux_mkv.cpp, lines 1658 following. The two
bytes in question contain the profile, the sample rate index, and the
number of channels.

  sh_a->codecdata[0] = ((profile + 1) << 3) | ((srate_idx & 0xe) >> 1);
  sh_a->codecdata[1] = ((srate_idx & 0x1) << 7) | (track->a_channels << 3);

-- 
 ==> Ciao, Mosu (Moritz Bunkus)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030901/56f6129d/attachment.pgp>


More information about the MPlayer-dev-eng mailing list