GNOME Bugzilla – Bug 652812
Don't create dummy extradata for AAC LATM
Last modified: 2011-07-18 10:06:04 UTC
Creating dummy extradata in gst_ffmpeg_caps_with_codecid causes problems for AAC LATM decoding, because libav will use the dummy data for initialising the AAC decoder (see libavcodec/aacdec.c) and this breaks LATM decoding. The following patch should fix this.
Created attachment 190104 [details] [review] Don't create dummy extradata for AAC LATM
Will the decoder work if no codec_data is provided at all? Would it be possible to construct valid codec_data from the caps?
Yes, it will work, libav LATM parser and decoder will parse the necessary information from the LATM stream. AFAIK there is no LATM parser in GStreamer, so I don't see how we could construct codec_data.
Ok, for that see bug #615740 and your patch is correct :)
commit 95fe6ca01e7a1bb7b889b794dd4f64fedcf26139 Author: Raimo Järvi <raimo.jarvi@gmail.com> Date: Fri Jun 17 14:05:58 2011 +0300 codecmap: Don't create dummy extradata for AAC LATM If extradata is created for LATM, libav will use it for initialising AAC decoder and decoding will fail. Fixes bug #652812.