From: Tim-Philipp Müller Date: Mon, 26 Sep 2011 18:55:54 +0000 (+0100) Subject: ffmpegdec: disable parser for already-parsed FLAC input X-Git-Tag: RELEASE-0.10.13~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a34abff64dcfac2025c8a923ea6fbf1797c89c1;p=platform%2Fupstream%2Fgst-libav.git 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 --- 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;