ffmpegcodecmap: don't create dummy codec data for FLAC decoder

Since then it just errors out because it's too small, as it
wants the flac headers as codec data if there is codec data.

https://bugzilla.gnome.org/show_bug.cgi?id=589361
This commit is contained in:
Tim-Philipp Müller 2011-09-26 19:54:52 +01:00
parent 42cb5bd386
commit 902ee8a905

View file

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