[FFmpeg-devel] [PATCH]?avcodec_decode_audio3?and?multiple?frames in a packet

Sascha Sommer saschasommer
Mon Oct 12 22:50:06 CEST 2009


Hi,

On Montag, 12. Oktober 2009, Michael Niedermayer wrote:
> On Sat, Oct 10, 2009 at 09:09:22PM +0200, Sascha Sommer wrote:
> > Hi,
> >
> > > > > again returned != decoded
> > > > > if you decode nothing that IS pretty much the same as not using any
> > > > > bytes, at least its pretty close ...
> > > >
> > > > Yes so in
> > > >
> > > > "@return On error a negative value is returned, otherwise the number
> > > > of bytes used or zero if no frame could be decompressed."
> > > >
> > > > "if no frame could be decompressed" is also pretty much the same as
> > > > not using any bytes? So above sentence could also have been written
> > > > as "On error a negative value is returned, otherwise the number of
> > > > bytes used"?
> > >
> > > probably yes
> >
> > This is exactly what the part of the patch that lead to this discussion
> > did. How about the attached patch instead? It extends the description of
> > the zero case and also clarifies that avcodec_decode_audio3 has to be
> > called multiple times for a single AVPacket when it contains multiple
> > frames per packet.
> >
> > Regards
> >
> > Sascha
> >
> >
> >  avcodec.h |    8 +++++---
> >  1 file changed, 5 insertions(+), 3 deletions(-)
> > 309dba70dcf8ce37b965ba2f5cb347471791462d  avcodec_decode_audio3_2.patch
>
> ok
>

Applied.

Regards

Sascha




More information about the ffmpeg-devel mailing list