mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
h265parse: Update caps when receive VPS/SPS/PPS
https://bugzilla.gnome.org/show_bug.cgi?id=722240
This commit is contained in:
parent
13a397a0b9
commit
cd8c0227c8
1 changed files with 6 additions and 3 deletions
|
@ -1828,10 +1828,13 @@ gst_h265_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (format == h265parse->format && align == h265parse->align) {
|
if (format == h265parse->format && align == h265parse->align) {
|
||||||
gst_base_parse_set_passthrough (parse, TRUE);
|
/* do not set CAPS and passthrough mode if VPS/SPS/PPS have not been parsed */
|
||||||
|
if (h265parse->have_vps && h265parse->have_sps && h265parse->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_h265_parse_update_src_caps (h265parse, caps);
|
gst_h265_parse_update_src_caps (h265parse, caps);
|
||||||
|
}
|
||||||
} else if (format == GST_H265_PARSE_FORMAT_HVC1
|
} else if (format == GST_H265_PARSE_FORMAT_HVC1
|
||||||
|| format == GST_H265_PARSE_FORMAT_HEV1) {
|
|| format == GST_H265_PARSE_FORMAT_HEV1) {
|
||||||
/* if input != output, and input is hevc, must split before anything else */
|
/* if input != output, and input is hevc, must split before anything else */
|
||||||
|
|
Loading…
Reference in a new issue