mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
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:
parent
30a51ca547
commit
9b6c8a48b4
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue