nvcodec: nvvp9sldec: Fix for VP9 profile2 decoding
authorSeungha Yang <seungha@centricular.com>
Sun, 3 Oct 2021 08:37:02 +0000 (17:37 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 4 Oct 2021 08:04:00 +0000 (08:04 +0000)
Fix for output video format to be selected correctly

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1026>

subprojects/gst-plugins-bad/sys/nvcodec/gstnvvp9dec.c

index 0368961..8f13451 100644 (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;