]> git.sesse.net Git - ffmpeg/commit
latmdec: fix audio specific config parsing
authorJanne Grunau <janne-libav@jannau.net>
Fri, 21 Oct 2011 15:25:30 +0000 (17:25 +0200)
committerJanne Grunau <janne-libav@jannau.net>
Fri, 2 Dec 2011 23:42:48 +0000 (00:42 +0100)
commitfd095539d10bb440042e671f95306b16b0fec674
treec28e329a98879823371f7b3e3f388f83f3805fab
parent0eea212943544d40f99b05571aa7159d78667154
latmdec: fix audio specific config parsing

Pass the correct size in bits to mpeg4audio_get_config and add a flag
to disable parsing of the sync extension when the size is not known.

Latm with AudioMuxVersion 0 does not specify the size of the audio
specific config. Data after the audio specific config can be
misinterpreted as sync extension resulting in random and wrong configs.
libavcodec/aacdec.c
libavcodec/alsdec.c
libavcodec/mpeg4audio.c
libavcodec/mpeg4audio.h
libavcodec/mpegaudiodec.c
libavformat/adtsenc.c
libavformat/flvdec.c
libavformat/isom.c
libavformat/latmenc.c
libavformat/matroskaenc.c