From 47f1dc837fda3fe153e48f2bc1e48f9e12bb9194 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sun, 30 Oct 2022 18:35:08 +0900 Subject: [PATCH] vp9parse: Delaying src caps until frame is parsed if profile > 0 subsampling and/or bitdepth information will be required for negotiation Part-of: --- subprojects/gst-plugins-bad/gst/videoparsers/gstvp9parse.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst/videoparsers/gstvp9parse.c b/subprojects/gst-plugins-bad/gst/videoparsers/gstvp9parse.c index 23c84e8a33..4d4464265f 100644 --- a/subprojects/gst-plugins-bad/gst/videoparsers/gstvp9parse.c +++ b/subprojects/gst-plugins-bad/gst/videoparsers/gstvp9parse.c @@ -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);