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:
parent
da52bedbff
commit
47f1dc837f
@ -824,8 +824,12 @@ gst_vp9_parse_set_sink_caps (GstBaseParse * parse, GstCaps * caps)
|
|||||||
|
|
||||||
/* if all of decoder's capability related values are provided
|
/* if all of decoder's capability related values are provided
|
||||||
* by upstream, update src caps now */
|
* 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_vp9_parse_update_src_caps (self, in_caps);
|
||||||
|
}
|
||||||
|
|
||||||
gst_caps_unref (in_caps);
|
gst_caps_unref (in_caps);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user