[FFmpeg-devel] [RFC] Monkey's Audio decoder

Kostya kostya.shishkov
Wed Sep 12 12:37:35 CEST 2007


On Wed, Sep 12, 2007 at 03:41:54AM -0400, Rich Felker wrote:
> On Wed, Sep 12, 2007 at 08:08:26AM +0300, Kostya wrote:
> > > why does the code need these dummy packets? the application should call the
> > > decoder again with not yet used data
> > 
> > a) data should be bswap32()d before use
> > b) offset in data should be passed to decoder
> > 
> > While demuxer take care of this, it is hard to make application do so.
> > Alternatives are handling the whole frames or decoding blocks to determine their
> > boundaries (which requires half of decoder code duplication).
> 
> IMO this is the only correct way. It's what I recommended to someone
> else for musepack.

I fear it's me again.
 
> Dummy packets are certainly not a reasonable approach.
> 
> Rich




More information about the ffmpeg-devel mailing list