mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
h264parse: do not set CAPS and passthrough mode if SPS/PPS have not been parsed
https://bugzilla.gnome.org/show_bug.cgi?id=705452
This commit is contained in:
parent
f69cdad175
commit
43dcebe2a0
1 changed files with 6 additions and 3 deletions
|
@ -1902,10 +1902,13 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (format == h264parse->format && align == h264parse->align) {
|
if (format == h264parse->format && align == h264parse->align) {
|
||||||
gst_base_parse_set_passthrough (parse, TRUE);
|
/* do not set CAPS and passthrough mode if SPS/PPS have not been parsed */
|
||||||
|
if (h264parse->have_sps && h264parse->have_pps) {
|
||||||
|
gst_base_parse_set_passthrough (parse, TRUE);
|
||||||
|
|
||||||
/* we did parse codec-data and might supplement src caps */
|
/* we did parse codec-data and might supplement src caps */
|
||||||
gst_h264_parse_update_src_caps (h264parse, caps);
|
gst_h264_parse_update_src_caps (h264parse, caps);
|
||||||
|
}
|
||||||
} else if (format == GST_H264_PARSE_FORMAT_AVC) {
|
} else if (format == GST_H264_PARSE_FORMAT_AVC) {
|
||||||
/* if input != output, and input is avc, must split before anything else */
|
/* if input != output, and input is avc, must split before anything else */
|
||||||
/* arrange to insert codec-data in-stream if needed.
|
/* arrange to insert codec-data in-stream if needed.
|
||||||
|
|
Loading…
Reference in a new issue