# HG changeset patch # User nicodvb # Date 1171748716 0 # Node ID 583926af08ac596f6c7b42d70c920c2de79a10fd # Parent 9a70738e124ce2285867254802f46dfe276eb962 omit length field of AAC-LATM audio streams; fixes decoding by faad. Patch by Carl Eugen Hoyos (cehoyos ag or at) diff -r 9a70738e124c -r 583926af08ac libmpdemux/demux_rtp_codec.cpp --- a/libmpdemux/demux_rtp_codec.cpp Sat Feb 17 21:12:27 2007 +0000 +++ b/libmpdemux/demux_rtp_codec.cpp Sat Feb 17 21:45:16 2007 +0000 @@ -193,6 +193,8 @@ = parseStreamMuxConfigStr(subsession->fmtp_config(), codecdata_len); sh_audio->codecdata_len = codecdata_len; + //faad doesn't understand LATM's data length field, so omit it + ((MPEG4LATMAudioRTPSource*)subsession->rtpSource())->omitLATMDataLengthField(); } else if (strcmp(subsession->codecName(), "MPEG4-GENERIC") == 0) { wf->wFormatTag = sh_audio->format = mmioFOURCC('m','p','4','a'); // For the codec to work correctly, it needs "AudioSpecificConfig"