Changeset 283


Ignore:
Timestamp:
Apr 25, 2014, 1:55:51 AM (10 years ago)
Author:
roman
Message:
 
Location:
trunk/Utilities/DumpMediaSamples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/DumpMediaSamples/DumpMediaSamples.cpp

    r217 r283  
    310310                                        for(nIndex = 0; nIndex < (SIZE_T) Properties.lActual && nIndex < g_nMaximalPrintSize; nIndex++)
    311311                                                sBuffer.AppendFormat(_T("%02X "), Properties.pbBuffer[nIndex]);
     312                                        UINT32 nBufferCheck = 0;
     313                                        for(nIndex = 0; nIndex < (SIZE_T) Properties.lActual; nIndex++)
     314                                                nBufferCheck += (UINT8) Properties.pbBuffer[nIndex];
    312315                                        if(nIndex > g_nMaximalPrintSize)
    313316                                                sBuffer.Append(_T("..."));
    314                                         _tprintf(_T("%s") _T(".cbBuffer %d, .lActual %d, pbBuffer %s\n"),
     317                                        _tprintf(_T("%s") _T(".cbBuffer %d, .lActual %d, pbBuffer %s [0x%08X]\n"),
    315318                                                m_sNamePrefix,
    316319                                                Properties.cbBuffer,
    317320                                                Properties.lActual,
    318321                                                sBuffer,
     322                                                nBufferCheck,
    319323                                                0);
    320324                                }
    321                                 //_tprintf(_T("%s") _T("Time, %s") _T("\n"),
    322                                 //      m_sNamePrefix,
    323                                 //      _StringHelper::Join(TimeArray, _T(", ")),
    324                                 //      0);
     325                                _tprintf(_T("%s") _T("Time, %s") _T("\n"),
     326                                        m_sNamePrefix,
     327                                        _StringHelper::Join(TimeArray, _T(", ")),
     328                                        0);
    325329                                if(m_pHandler)
    326330                                        m_pHandler->HandleSample(Properties);
Note: See TracChangeset for help on using the changeset viewer.