From 902ee8a9059f55eff1fefeecf1f9b96d99781ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 26 Sep 2011 19:54:52 +0100 Subject: [PATCH] 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 --- ext/ffmpeg/gstffmpegcodecmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/ffmpeg/gstffmpegcodecmap.c b/ext/ffmpeg/gstffmpegcodecmap.c index 42cad1a28e..89bda3db78 100644 --- a/ext/ffmpeg/gstffmpegcodecmap.c +++ b/ext/ffmpeg/gstffmpegcodecmap.c @@ -2387,7 +2387,8 @@ gst_ffmpeg_caps_with_codecid (enum CodecID codec_id, } 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 * extradata anyway which makes then segfault. */ context->extradata =