From 2ecf2c802c5897aa32ff988843befcea22f8b118 Mon Sep 17 00:00:00 2001 From: Kurt Kartaltepe Date: Fri, 13 Sep 2024 12:31:32 -0700 Subject: [PATCH] obs-qsv11: Initialize allocator response We check that mids is a nullptr which may not be the case if this remains uninitialized. Earlier attempt to fix this assumed we faulted on the response itself. fixes #11221 --- plugins/obs-qsv11/QSV_Encoder_Internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/obs-qsv11/QSV_Encoder_Internal.h b/plugins/obs-qsv11/QSV_Encoder_Internal.h index c90efedf7..3fd06e6d3 100644 --- a/plugins/obs-qsv11/QSV_Encoder_Internal.h +++ b/plugins/obs-qsv11/QSV_Encoder_Internal.h @@ -105,7 +105,7 @@ private: void *m_sessionData; mfxFrameAllocator m_mfxAllocator; mfxVideoParam m_mfxEncParams; - mfxFrameAllocResponse m_mfxResponse; + mfxFrameAllocResponse m_mfxResponse{}; mfxFrameSurface1 **m_pmfxSurfaces; mfxU16 m_nSurfNum; MFXVideoENCODE *m_pmfxENC;