[FFmpeg-devel] [RFC/PATCH] Dealing with 0 padded audio packets

Alex Converse alex.converse
Wed May 19 00:16:35 CEST 2010


Currently the FFmpeg stumbles when decoding AAC where the container
has zero padded audio frames to make a constant packet size. This
situation is common for AAC in ASF[1] and WMP handles it fine.
QuickTime seems to handle the MP4 analog fine.

The best idea I can come up with is a chomp[2] bitstream filter to
trim these when remuxing and to make the AAC decoder consume the rest
of a packet if it is all zero.

Other ideas are welcome.

--Alex

[1] sample in incoming/h264_aac_zeropad.asf
[2] http://perldoc.perl.org/functions/chomp.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-aac_decode_frame-consume-zero-padding-at-the-en.patch
Type: text/x-patch
Size: 1597 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100518/c1ccad02/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-a-chomp-BSF-to-consume-zero-padding-at-the-end-o.patch
Type: text/x-patch
Size: 3735 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100518/c1ccad02/attachment-0001.bin>



More information about the ffmpeg-devel mailing list