mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
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:
parent
42cb5bd386
commit
902ee8a905
1 changed files with 2 additions and 1 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue