mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
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:
parent
902ee8a905
commit
8a34abff64
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue