summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2011-09-26 19:55:54 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-09-26 19:55:54 +0100
commit8a34abff64dcfac2025c8a923ea6fbf1797c89c1 (patch)
tree1a8d2a2f9b9a74209ef343b66f6836909b47135b /ext
parent902ee8a9059f55eff1fefeecf1f9b96d99781ae3 (diff)
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
Diffstat (limited to 'ext')
-rw-r--r--ext/ffmpeg/gstffmpegdec.c6
1 files changed, 6 insertions, 0 deletions
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;