diff options
author | jonasno <jonasno@users.sourceforge.net> | 2010-02-19 01:01:33 +0300 |
---|---|---|
committer | jonasno <jonasno@users.sourceforge.net> | 2010-02-19 01:01:33 +0300 |
commit | ca7ad0034eb7760572223a7e120d1be2e35e34d8 (patch) | |
tree | e7d3d3dc8f8a17c9622a5c2e5afc67978699b4d2 /src/filters/transform/MpaDecFilter/MpaDecFilter.cpp | |
parent | c37e22cac1d15d150c66b61fba3b79eb3f899b7e (diff) |
Changed C casts to C++ casts and some code formatting corrections
Patch by XhmikosR
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1676 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/MpaDecFilter/MpaDecFilter.cpp')
-rw-r--r-- | src/filters/transform/MpaDecFilter/MpaDecFilter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filters/transform/MpaDecFilter/MpaDecFilter.cpp b/src/filters/transform/MpaDecFilter/MpaDecFilter.cpp index 7cb691923..ca91ef027 100644 --- a/src/filters/transform/MpaDecFilter/MpaDecFilter.cpp +++ b/src/filters/transform/MpaDecFilter/MpaDecFilter.cpp @@ -405,7 +405,7 @@ HRESULT CMpaDecFilter::Receive(IMediaSample* pIn) long len = pIn->GetActualDataLength();
- ((CDeCSSInputPin*)m_pInput)->StripPacket(pDataIn, len);
+ (static_cast<CDeCSSInputPin*>(m_pInput))->StripPacket(pDataIn, len);
REFERENCE_TIME rtStart = _I64_MIN, rtStop = _I64_MIN;
hr = pIn->GetTime(&rtStart, &rtStop);
@@ -2198,7 +2198,7 @@ void CMpaDecFilter::FlacDeliverBuffer (unsigned blocksize, const __int32 * cons static FLAC__StreamDecoderReadStatus StreamDecoderRead(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], size_t *bytes, void *client_data)
{
- CMpaDecFilter* pThis = (CMpaDecFilter*) client_data;
+ CMpaDecFilter* pThis = static_cast<CMpaDecFilter*> (client_data);
pThis->FlacFillBuffer (buffer, bytes);
@@ -2207,7 +2207,7 @@ static FLAC__StreamDecoderReadStatus StreamDecoderRead(const FLAC__StreamDecoder static FLAC__StreamDecoderWriteStatus StreamDecoderWrite(const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data)
{
- CMpaDecFilter* pThis = (CMpaDecFilter*) client_data;
+ CMpaDecFilter* pThis = static_cast<CMpaDecFilter*> (client_data);
pThis->FlacDeliverBuffer (frame->header.blocksize, buffer);
|