diff options
-rw-r--r-- | src/DSUtil/GolombBuffer.h | 8 | ||||
-rw-r--r-- | src/subtitles/Rasterizer.cpp | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/DSUtil/GolombBuffer.h b/src/DSUtil/GolombBuffer.h index 3a14f040e..ffb596e02 100644 --- a/src/DSUtil/GolombBuffer.h +++ b/src/DSUtil/GolombBuffer.h @@ -20,10 +20,8 @@ *
*/
-
#pragma once
-
class CGolombBuffer
{
public:
@@ -34,7 +32,7 @@ public: INT64 SExpGolombRead();
void BitByteAlign();
- inline BYTE ReadByte() { return (BYTE) BitRead ( 8); };
+ inline BYTE ReadByte() { return (BYTE) BitRead ( 8); };
inline SHORT ReadShort() { return (SHORT)BitRead (16); };
inline DWORD ReadDword() { return (DWORD)BitRead (32); };
void ReadBuffer(BYTE* pDest, int nSize);
@@ -43,9 +41,9 @@ public: void Reset(BYTE* pNewBuffer, int nNewSize);
void SetSize(int nValue) { m_nSize = nValue; };
- int GetSize() const { return m_nSize; };
+ int GetSize() const { return m_nSize; };
int RemainingSize() const { return m_nSize - m_nBitPos; };
- bool IsEOF() const const { return m_nBitPos >= m_nSize; };
+ bool IsEOF() const { return m_nBitPos >= m_nSize; };
INT64 GetPos();
BYTE* GetBufferPos() { return m_pBuffer + m_nBitPos; };
diff --git a/src/subtitles/Rasterizer.cpp b/src/subtitles/Rasterizer.cpp index 661ed04d9..b04e7e79a 100644 --- a/src/subtitles/Rasterizer.cpp +++ b/src/subtitles/Rasterizer.cpp @@ -1038,7 +1038,7 @@ CRect Rasterizer::Draw(SubPicDesc& spd, CRect& clipRect, byte* pAlphaMask, int x // not (switchpts[1] == 0xffffffff)
else
{
- // switchpts plays an important rule here
+ // switchpts plays an important role here
const long *sw = switchpts;
if(fBody)
|