vp9parse: Delaying src caps until frame is parsed if profile > 0

subsampling and/or bitdepth information will be required for
negotiation

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3297>
This commit is contained in:
Seungha Yang 2022-10-30 18:35:08 +09:00 committed by GStreamer Marge Bot
parent da52bedbff
commit 47f1dc837f

View file

@ -824,8 +824,12 @@ gst_vp9_parse_set_sink_caps (GstBaseParse * parse, GstCaps * caps)
/* if all of decoder's capability related values are provided
* by upstream, update src caps now */
if (self->width > 0 && self->height > 0 && profile)
if (self->width > 0 && self->height > 0 && profile &&
/* Other profiles defines multiple bitdepth/subsampling
* Delaying src caps update for non profile-0 streams */
self->profile == GST_VP9_PROFILE_0) {
gst_vp9_parse_update_src_caps (self, in_caps);
}
gst_caps_unref (in_caps);