[Ffmpeg-devel] [PATCH] avcodec_decode_audio2() and a52dec.c

Andreas Öman andreas
Tue Jan 16 23:27:55 CET 2007


Hi,

recent addition of avcodec_decode_audio2() seems break AC3-decoding
(at least in my app.). When a52_decode_frame() hasn't got enough
data to produce output it will just return consumed buffers but wont
touch *data_size, thus fooling caller to believe there is
AVCODEC_MAX_AUDIO_FRAME_SIZE available bytes for output.

This patch should fix it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: a52dec.diff
Type: text/x-patch
Size: 790 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070116/f5965149/attachment.bin>



More information about the ffmpeg-devel mailing list