vp9parse: Fix the subsampling_x/y to chroma format mapping.

The chroma format 4:4:4 needs both subsampling_x and subsampling_y
equal to 0.

Fixes: #1502
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1974>
This commit is contained in:
He Junyan 2021-01-22 13:25:50 +08:00 committed by GStreamer Merge Bot
parent 82a9e4630c
commit 1029c84dbf

View file

@ -586,8 +586,8 @@ gst_vp9_parse_update_src_caps (GstVp9Parse * self, GstCaps * caps)
else if (self->parser->subsampling_x == 0 &&
self->parser->subsampling_y == 1)
chroma_format = "4:4:0";
else if (self->parser->subsampling_x == 1 &&
self->parser->subsampling_y == 1)
else if (self->parser->subsampling_x == 0 &&
self->parser->subsampling_y == 0)
chroma_format = "4:4:4";
if (chroma_format)