[FFmpeg-devel] [RFC] Monkey's Audio decoder
Wed Sep 12 09:41:54 CEST 2007
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.
Dummy packets are certainly not a reasonable approach.
More information about the ffmpeg-devel