mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
msdkdec: Check width and height of mfxVideoParam before allocation
DecodeHeader must be called to fill the mfxVideoParam before allocation, and thus the check for width and height in mfxVideoParam is necessary. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1817>
This commit is contained in:
parent
ebf63e1b91
commit
d8ab85c3ef
1 changed files with 3 additions and 0 deletions
|
@ -1675,6 +1675,9 @@ gst_msdkdec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
|
|||
GstCaps *pool_caps /*, *negotiated_caps */ ;
|
||||
guint size, min_buffers, max_buffers;
|
||||
|
||||
if (!thiz->param.mfx.FrameInfo.Width || !thiz->param.mfx.FrameInfo.Height)
|
||||
return FALSE;
|
||||
|
||||
if (!GST_VIDEO_DECODER_CLASS (parent_class)->decide_allocation (decoder,
|
||||
query))
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue