From: Sreerenj Balachandran Date: Fri, 13 Nov 2015 16:58:33 +0000 (+0200) Subject: decoder: vp9: Fill the VADecPictureParameterBufferVP9 width/height from frame header X-Git-Tag: 1.19.3~503^2~1597 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4aa523f8b426eadd16990978a75c73404b4ecce0;p=platform%2Fupstream%2Fgstreamer.git decoder: vp9: Fill the VADecPictureParameterBufferVP9 width/height from frame header Always fill width/height of VADecPictureParameterBufferVP9 from frame header. Preliminary fix for supproting multi resolution video decode. --- diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c b/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c index 6d5e719..39834ec 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c @@ -254,8 +254,8 @@ fill_picture (GstVaapiDecoderVp9 * decoder, GstVaapiPicture * picture) GstVp9FrameHdr *frame_hdr = &priv->frame_hdr; /* Fill in VAPictureParameterBufferVP9 */ - pic_param->frame_width = priv->width; - pic_param->frame_height = priv->height; + pic_param->frame_width = frame_hdr->width; + pic_param->frame_height = frame_hdr->height; /* Fill in ReferenceFrames */ vaapi_fill_ref_frames (decoder, picture, frame_hdr, pic_param);