diff options
Diffstat (limited to 'src/filters/transform/MPCVideoDec/DXVADecoderMpeg2.cpp')
-rw-r--r-- | src/filters/transform/MPCVideoDec/DXVADecoderMpeg2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filters/transform/MPCVideoDec/DXVADecoderMpeg2.cpp b/src/filters/transform/MPCVideoDec/DXVADecoderMpeg2.cpp index 6037452c2..286ba9d0c 100644 --- a/src/filters/transform/MPCVideoDec/DXVADecoderMpeg2.cpp +++ b/src/filters/transform/MPCVideoDec/DXVADecoderMpeg2.cpp @@ -91,7 +91,7 @@ HRESULT CDXVADecoderMpeg2::DecodeFrame(BYTE* pDataIn, UINT nSize, REFERENCE_TIME if (!m_PictureParams.bSecondField) {
m_rtStart = rtStart;
m_rtStop = rtStop;
- m_pSampleToDeliver = NULL;
+ m_pSampleToDeliver = nullptr;
hr = GetFreeSurfaceIndex(m_nSurfaceIndex, &m_pSampleToDeliver, rtStart, rtStop);
if (FAILED(hr)) {
ASSERT(hr == VFW_E_NOT_COMMITTED); // Normal when stop playing
@@ -101,7 +101,7 @@ HRESULT CDXVADecoderMpeg2::DecodeFrame(BYTE* pDataIn, UINT nSize, REFERENCE_TIME } else {
m_rtStart = rtStart;
m_rtStop = rtStop;
- m_pSampleToDeliver = NULL;
+ m_pSampleToDeliver = nullptr;
hr = GetFreeSurfaceIndex(m_nSurfaceIndex, &m_pSampleToDeliver, rtStart, rtStop);
if (FAILED(hr)) {
ASSERT(hr == VFW_E_NOT_COMMITTED); // Normal when stop playing
@@ -110,7 +110,7 @@ HRESULT CDXVADecoderMpeg2::DecodeFrame(BYTE* pDataIn, UINT nSize, REFERENCE_TIME }
// m_pSampleToDeliver is unused for DXVA1
- if (GetEngine() == ENGINE_DXVA2 && m_pSampleToDeliver == NULL) {
+ if (GetEngine() == ENGINE_DXVA2 && m_pSampleToDeliver == nullptr) {
return S_FALSE;
}
@@ -236,7 +236,7 @@ void CDXVADecoderMpeg2::Flush() m_wRefPictureIndex[1] = NO_REF_FRAME;
m_nSurfaceIndex = 0;
- m_pSampleToDeliver = NULL;
+ m_pSampleToDeliver = nullptr;
m_bSecondField = false;
m_rtStart = _I64_MIN;
|