Browse Source

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
Kurt Kartaltepe 1 year ago
parent
commit
2ecf2c802c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/obs-qsv11/QSV_Encoder_Internal.h

+ 1 - 1
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;