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

Michael Niedermayer michaelni
Mon Oct 12 09:12:06 CEST 2009


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I wish the Xiph folks would stop pretending they've got something they
do not.  Somehow I fear this will remain a wish. -- M?ns Rullg?rd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091012/0788e7f7/attachment.pgp>



More information about the ffmpeg-devel mailing list