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

Sascha Sommer saschasommer
Sat Oct 10 21:09:22 CEST 2009


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: avcodec_decode_audio3_2.patch
Type: text/x-diff
Size: 1412 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091010/160b6516/attachment.patch>



More information about the ffmpeg-devel mailing list