changeset 22235:583926af08ac

omit length field of AAC-LATM audio streams; fixes decoding by faad. Patch by Carl Eugen Hoyos (cehoyos ag or at)
author nicodvb
date Sat, 17 Feb 2007 21:45:16 +0000
parents 9a70738e124c
children 2183a8075e35
files libmpdemux/demux_rtp_codec.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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"