mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue