h264parse: don't consider unknown stream-format as avc

It should try to use bytestream in these cases that the format
is set to _FORMAT_NONE as it seems that is what the 'else' clause
for bytestream can handle (by defaulting to _FORMAT_BYTESTREAM).
This commit is contained in:
Thiago Santos 2014-08-21 12:32:10 -03:00
parent 30a51ca547
commit 9b6c8a48b4

View file

@ -1860,8 +1860,9 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
gst_h264_parse_format_from_caps (caps, &format, &align);
/* packetized video has a codec_data */
if (format != GST_H264_PARSE_FORMAT_BYTE &&
(value = gst_structure_get_value (str, "codec_data"))) {
if ((format == GST_H264_PARSE_FORMAT_AVC
|| format == GST_H264_PARSE_FORMAT_AVC3)
&& (value = gst_structure_get_value (str, "codec_data"))) {
GstMapInfo map;
guint8 *data;
guint num_sps, num_pps;