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.
This commit is contained in:
Raimo Järvi 2011-06-17 14:05:58 +03:00 committed by Edward Hervey
parent 82ac8b1e14
commit 95fe6ca01e

View file

@ -2387,7 +2387,7 @@ gst_ffmpeg_caps_with_codecid (enum CodecID codec_id,
}
GST_DEBUG ("have codec data of size %d", size);
} else if (context->extradata == NULL) {
} else if (context->extradata == NULL && codec_id != CODEC_ID_AAC_LATM) {
/* no extradata, alloc dummy with 0 sized, some codecs insist on reading
* extradata anyway which makes then segfault. */
context->extradata =