[vlc-devel] [PATCH] mpeg4audio packetizer: 0 for channel config in ADTS header

XilasZ xilasz at gmail.com
Tue Sep 11 14:29:59 CEST 2012

A value of 0 for channel config in ADTS header lead to "Invalid ADTS
header", preventing sound playback on some streams.

But it is a valid value (cf http://wiki.multimedia.cx/index.php?title=ADTS).
0 means that channel config is not specified in the header, but in another
structure, following the header.

Besides, in mpeg4audio.c, in case of 0, Mpeg4GAProgramConfigElement is
called to find the channel config from this structure.

So the check on the header is wrong, this patch fix it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120911/c68f6070/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpeg4audio-packetizer-0-for-channel-config-in-ADTS-h.patch
Type: application/octet-stream
Size: 1225 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120911/c68f6070/attachment.obj>

More information about the vlc-devel mailing list