nvcodec: nvvp9sldec: Fix for VP9 profile2 decoding

Fix for output video format to be selected correctly

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1026>
This commit is contained in:
Seungha Yang 2021-10-03 17:37:02 +09:00 committed by GStreamer Marge Bot
parent baf252b48b
commit 613d380b97

View file

@ -246,6 +246,7 @@ gst_nv_vp9_dec_new_sequence (GstVp9Decoder * decoder,
self->width = frame_hdr->width;
self->height = frame_hdr->height;
self->profile = frame_hdr->profile;
if (self->profile == GST_VP9_PROFILE_0) {
out_format = GST_VIDEO_FORMAT_NV12;