vc1parse: just assume none header-format when no codec_data is present

https://bugzilla.gnome.org/show_bug.cgi?id=738449
This commit is contained in:
Aurélien Zanelli 2014-10-13 14:05:24 +02:00 committed by Sebastian Dröge
parent 3cead041f6
commit 77453c8124

View file

@ -1773,9 +1773,7 @@ gst_vc1_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
gst_buffer_unmap (codec_data, &minfo);
} else {
vc1parse->input_header_format = VC1_HEADER_FORMAT_NONE;
if (header_format && strcmp (header_format, "sequence-layer") != 0)
vc1parse->input_header_format = VC1_HEADER_FORMAT_SEQUENCE_LAYER;
else if (header_format && strcmp (header_format, "none") != 0)
if (header_format && strcmp (header_format, "none") != 0)
GST_WARNING_OBJECT (vc1parse,
"Upstream claimed '%s' header format but 'none' detected",
header_format);