From 8a34abff64dcfac2025c8a923ea6fbf1797c89c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 26 Sep 2011 19:55:54 +0100 Subject: [PATCH] ffmpegdec: disable parser for already-parsed FLAC input Not needed to make anything work, just seems to make sense. https://bugzilla.gnome.org/show_bug.cgi?id=589361 --- ext/ffmpeg/gstffmpegdec.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c index 0131ff0..395937d 100644 --- a/ext/ffmpeg/gstffmpegdec.c +++ b/ext/ffmpeg/gstffmpegdec.c @@ -852,6 +852,12 @@ gst_ffmpegdec_setcaps (GstPad * pad, GstCaps * caps) } } + /* for FLAC, don't parse if it's already parsed */ + if (oclass->in_plugin->id == CODEC_ID_FLAC) { + if (gst_structure_has_field (structure, "streamheader")) + ffmpegdec->turnoff_parser = TRUE; + } + /* workaround encoder bugs */ ffmpegdec->context->workaround_bugs |= FF_BUG_AUTODETECT; ffmpegdec->context->error_recognition = 1; -- 2.7.4