[FFmpeg-devel] [PATCH] Fix Qclp decoder implementation of avcodec_decode_audio3()

Chris Rankin rankincj at yahoo.com
Wed Sep 7 11:17:30 CEST 2011


Hi,

The avcodec_decode_audio3() function documents its return value as:

"On error a negative value is returned, otherwise the number of bytes
used or zero if no frame data was decompressed (used) from the input
AVPacket."

However, the Qclp decoder always returns the number of bytes written into the 
output buffer instead of the number of bytes consumed from the input buffer.

Cheers,
Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QCELPDEC.diff
Type: text/x-patch
Size: 290 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110907/53a03d50/attachment.bin>


More information about the ffmpeg-devel mailing list