diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2012-03-04 15:11:23 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2012-03-04 15:11:23 +0400 |
commit | d9540298ef40c650ac0e025f2cc429af0c95c983 (patch) | |
tree | 3c14e7477c6fa1e8e306141a12fde1255f6c8953 /src/DSUtil/H264Nalu.cpp | |
parent | c3cdb7d8c22bf41dda8f5853754c171bc76fc8c9 (diff) |
Change : Dirty hack for use TrueHD decoder with MPC MPEGSplitter; some change in CH264Nalu class;
Change : New graphics for Windows 7 Taskbar;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4119 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/DSUtil/H264Nalu.cpp')
-rw-r--r-- | src/DSUtil/H264Nalu.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/DSUtil/H264Nalu.cpp b/src/DSUtil/H264Nalu.cpp index 077ddea90..d545d1325 100644 --- a/src/DSUtil/H264Nalu.cpp +++ b/src/DSUtil/H264Nalu.cpp @@ -23,11 +23,6 @@ #include "stdafx.h"
#include "H264Nalu.h"
-CH264Nalu::CH264Nalu()
-{
- // Explicit default constructor to make cppcheck happy.
-}
-
void CH264Nalu::SetBuffer(BYTE* pBuffer, int nSize, int nNALSize)
{
m_pBuffer = pBuffer;
@@ -39,7 +34,7 @@ void CH264Nalu::SetBuffer(BYTE* pBuffer, int nSize, int nNALSize) m_nNALStartPos = 0;
m_nNALDataPos = 0;
- if (nNALSize == 0) {
+ if (!nNALSize) {
MoveToNextAnnexBStartcode();
}
}
@@ -81,7 +76,7 @@ bool CH264Nalu::ReadNext() // RTP Nalu type : (XX XX) XX XX NAL..., with XX XX XX XX or XX XX equal to NAL size
m_nNALStartPos = m_nCurPos;
m_nNALDataPos = m_nCurPos + m_nNALSize;
- int nTemp = 0;
+ unsigned nTemp = 0;
for (int i=0; i<m_nNALSize; i++) {
nTemp = (nTemp << 8) + m_pBuffer[m_nCurPos++];
}
|