From: Nicolas Dufresne Date: Mon, 4 May 2020 18:52:45 +0000 (-0400) Subject: v4l2slvp8dec: Ensure width/height is always set X-Git-Tag: 1.19.3~507^2~1930 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a449815f95e6b2b05a0fcd340bba6270da6c256b;p=platform%2Fupstream%2Fgstreamer.git v4l2slvp8dec: Ensure width/height is always set Our parser strictly read the bitstream. As it's known from DXVA that always having a valid width/height might be needed, use the cached width/height instead of the value from the parser. This didn't impact Hantro driver. Part-of: --- diff --git a/sys/v4l2codecs/gstv4l2codecvp8dec.c b/sys/v4l2codecs/gstv4l2codecvp8dec.c index 7962c98..75297be 100644 --- a/sys/v4l2codecs/gstv4l2codecvp8dec.c +++ b/sys/v4l2codecs/gstv4l2codecvp8dec.c @@ -335,8 +335,8 @@ gst_v4l2_codec_vp8_dec_fill_frame_header (GstV4l2CodecVp8Dec * self, .bit_count = frame_hdr->rd_count }, - .width = frame_hdr->width, - .height = frame_hdr->height, + .width = self->width, + .height = self->height, .horizontal_scale = frame_hdr->horiz_scale_code, .vertical_scale = frame_hdr->vert_scale_code,