[x265] [PATCH] frameencoder: allocate memory for SEIPictureTiming when interlaceMode is enabled
gopu at multicorewareinc.com
gopu at multicorewareinc.com
Wed Oct 8 11:02:30 CEST 2014
# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1412758470 -19800
# Wed Oct 08 14:24:30 2014 +0530
# Node ID 52677ba0c69441688fbe83c926ae39d4d1a5422c
# Parent 46c4b98d92ece7ff25d790b0fc69a8185d575524
frameencoder: allocate memory for SEIPictureTiming when interlaceMode is enabled
diff -r 46c4b98d92ec -r 52677ba0c694 source/encoder/frameencoder.cpp
--- a/source/encoder/frameencoder.cpp Mon Oct 06 22:07:54 2014 -0500
+++ b/source/encoder/frameencoder.cpp Wed Oct 08 14:24:30 2014 +0530
@@ -64,7 +64,7 @@
delete[] m_rows;
- if (m_param->bEmitHRDSEI)
+ if (m_param->bEmitHRDSEI || !!m_param->interlaceMode)
{
delete m_rce.picTimingSEI;
delete m_rce.hrdTiming;
@@ -109,7 +109,7 @@
m_frameFilter.init(top, this, numRows);
// initialize HRD parameters of SPS
- if (m_param->bEmitHRDSEI)
+ if (m_param->bEmitHRDSEI || !!m_param->interlaceMode)
{
m_rce.picTimingSEI = new SEIPictureTiming;
m_rce.hrdTiming = new HRDTiming;
More information about the x265-devel
mailing list