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
This commit is contained in:
Tim-Philipp Müller 2011-09-26 19:55:54 +01:00
parent 902ee8a905
commit 8a34abff64

View file

@ -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;