diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2008-01-05 20:40:38 +0300 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2008-01-05 20:40:38 +0300 |
commit | 2ce7141df1e6b64b240ed1f23914f77f73ea816f (patch) | |
tree | d7261871a153f3827b987796525d0124268ad29d /src/filters/transform/mpcvideodec/DXVADecoderH264.cpp | |
parent | bd4026188a2d6ca62f49bdd22ab962f59fc688b1 (diff) |
Multilangual property page
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@364 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/mpcvideodec/DXVADecoderH264.cpp')
-rw-r--r-- | src/filters/transform/mpcvideodec/DXVADecoderH264.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/filters/transform/mpcvideodec/DXVADecoderH264.cpp b/src/filters/transform/mpcvideodec/DXVADecoderH264.cpp index a33dec943..3e3417778 100644 --- a/src/filters/transform/mpcvideodec/DXVADecoderH264.cpp +++ b/src/filters/transform/mpcvideodec/DXVADecoderH264.cpp @@ -160,24 +160,18 @@ HRESULT CDXVADecoderH264::DecodeFrame (BYTE* pDataIn, UINT nSize, REFERENCE_TIME break;
case NALU_TYPE_PPS :
- m_pFilter->DecodeData (pDataSlice, nSliceSize);
- FFH264UpdatePictureParam (false, &m_DXVAPicParams, &m_DXVAScalingMatrix, m_pFilter->GetAVCtx());
-
- pDataSlice += Nalu.len;
- nSliceSize -= Nalu.len;
- break;
case NALU_TYPE_SPS :
m_pFilter->DecodeData (pDataSlice, nSliceSize);
FFH264UpdatePictureParam (false, &m_DXVAPicParams, &m_DXVAScalingMatrix, m_pFilter->GetAVCtx());
-
- pDataSlice += Nalu.len;
- nSliceSize -= Nalu.len;
break;
+ }
- default :
+ if (!bSliceFound)
+ {
+ if (Nalu.len > nSliceSize)
+ return E_INVALIDARG;
pDataSlice += Nalu.len;
nSliceSize -= Nalu.len;
- break;
}
}
|