]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10-ffmpeg.git/commitdiff
codecmap: Don't create dummy extradata for AAC LATM
authorRaimo Järvi <raimo.jarvi@gmail.com>
Fri, 17 Jun 2011 11:05:58 +0000 (14:05 +0300)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 18 Jul 2011 10:04:29 +0000 (12:04 +0200)
If extradata is created for LATM, libav will use it for initialising AAC
decoder and decoding will fail.

Fixes bug #652812.

ext/ffmpeg/gstffmpegcodecmap.c

index 3ebd20f6ae13fcdff09ea9050aa279506abd6026..42cad1a28eb80998e2caa137826649cd23d898e4 100644 (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 =