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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1245>
This commit is contained in:
parent
ffd74fb5ec
commit
a449815f95
@ -335,8 +335,8 @@ gst_v4l2_codec_vp8_dec_fill_frame_header (GstV4l2CodecVp8Dec * self,
|
|||||||
.bit_count = frame_hdr->rd_count
|
.bit_count = frame_hdr->rd_count
|
||||||
},
|
},
|
||||||
|
|
||||||
.width = frame_hdr->width,
|
.width = self->width,
|
||||||
.height = frame_hdr->height,
|
.height = self->height,
|
||||||
|
|
||||||
.horizontal_scale = frame_hdr->horiz_scale_code,
|
.horizontal_scale = frame_hdr->horiz_scale_code,
|
||||||
.vertical_scale = frame_hdr->vert_scale_code,
|
.vertical_scale = frame_hdr->vert_scale_code,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user