[FFmpeg-devel] [PATCH 09/19] binkaudio: eliminate packet_buffer.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Jul 29 18:06:00 CEST 2012

On Sun, Jul 29, 2012 at 05:46:36PM +0200, Nicolas George wrote:
> Le duodi 12 thermidor, an CCXX, Reimar Döffinger a écrit :
> > I don't think our API allows for that, the bytes used is supposed
> > to be only informative.
> That is what ffmpeg.c does, for audio. The example too.

They are not what defines the API however.
The documentation of decode_audio* does not mention anything like that,
so I think we should avoid any code that does not do it this way.

> Also, requiring a parser would make libavcodec much more difficult to use if
> not with libavformat.

If a parser was added I'd expect the decoder to still return the correct
processed data number.
This would then automatically work for anyone either using libavformat,
using the parser manually or using the return value to split packets
for audio.

More information about the ffmpeg-devel mailing list