mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-19 13:56:06 -04:00
obs-qsv11: Keep ExtParam value around
This wasn't meant to be freed in InitParams
This commit is contained in:
@@ -61,8 +61,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <VersionHelpers.h>
|
||||
#include <obs-module.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
#define do_log(level, format, ...) \
|
||||
blog(level, "[qsv encoder: '%s'] " format, "msdk_impl", ##__VA_ARGS__)
|
||||
|
||||
@@ -300,8 +298,6 @@ mfxStatus QSV_Encoder_Internal::InitParams(qsv_param_t *pParams,
|
||||
(mfxU16)(pParams->nKeyIntSec * pParams->nFpsNum /
|
||||
(float)pParams->nFpsDen);
|
||||
|
||||
std::vector<mfxExtBuffer *> extendedBuffers;
|
||||
|
||||
if (m_ver.Major == 1 && m_ver.Minor >= 8) {
|
||||
memset(&m_co2, 0, sizeof(mfxExtCodingOption2));
|
||||
m_co2.Header.BufferId = MFX_EXTBUFF_CODING_OPTION2;
|
||||
|
||||
@@ -59,6 +59,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "QSV_Encoder.h"
|
||||
#include "common_utils.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class QSV_Encoder_Internal {
|
||||
public:
|
||||
QSV_Encoder_Internal(mfxIMPL &impl, mfxVersion &version);
|
||||
@@ -111,6 +113,7 @@ private:
|
||||
mfxU16 m_nSPSBufferSize;
|
||||
mfxU16 m_nPPSBufferSize;
|
||||
mfxVideoParam m_parameter;
|
||||
std::vector<mfxExtBuffer *> extendedBuffers;
|
||||
mfxExtCodingOption3 m_co3;
|
||||
mfxExtCodingOption2 m_co2;
|
||||
mfxExtCodingOption m_co;
|
||||
|
||||
Reference in New Issue
Block a user