Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorv0lt <v0lt@users.sourceforge.net>2012-06-03 09:18:15 +0400
committerv0lt <v0lt@users.sourceforge.net>2012-06-03 09:18:15 +0400
commitad345f4be405082ae1487b84489fadeff6337db4 (patch)
tree23c3acabee7b654010c5d951e82bb9801838111d /src/DSUtil/DSUtil.cpp
parente06fb0422f680c556cc938acba5e6fc842b40c5d (diff)
DSUtil: fixed all warnings
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4990 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/DSUtil/DSUtil.cpp')
-rw-r--r--src/DSUtil/DSUtil.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/DSUtil/DSUtil.cpp b/src/DSUtil/DSUtil.cpp
index 240d6f6f4..e7bc47d6f 100644
--- a/src/DSUtil/DSUtil.cpp
+++ b/src/DSUtil/DSUtil.cpp
@@ -764,7 +764,7 @@ void CStringToBin(CString str, CAtlArray<BYTE>& data)
BYTE b = 0;
str.MakeUpper();
- for (size_t i = 0, j = str.GetLength(); i < j; i++) {
+ for (int i = 0, j = str.GetLength(); i < j; i++) {
TCHAR c = str[i];
if (c >= _T('0') && c <= _T('9')) {
if (!(i&1)) {
@@ -919,11 +919,11 @@ bool GetKeyFrames(CString fn, CUIntArray& kfs)
if (afi.dwCaps&AVIFILECAPS_ALLKEYFRAMES) {
kfs.SetSize(si.dwLength);
- for (ptrdiff_t kf = 0; kf < (int)si.dwLength; kf++) {
+ for (DWORD kf = 0; kf < si.dwLength; kf++) {
kfs[kf] = kf;
}
} else {
- for (ptrdiff_t kf = 0; ; kf++) {
+ for (LONG kf = 0; ; kf++) {
kf = pavi->FindSample(kf, FIND_KEY|FIND_NEXT);
if (kf < 0 || kfs.GetCount() > 0 && kfs[kfs.GetCount()-1] >= (UINT)kf) {
break;
@@ -1194,7 +1194,7 @@ bool MakeMPEG2MediaType(CMediaType& mt, BYTE* seqhdr, DWORD len, int w, int h)
if (*(DWORD*)seqhdr_end == 0xb5010000) {
seqhdr_ext = seqhdr_end;
seqhdr_end += 10;
- len = seqhdr_end - seqhdr;
+ len = (DWORD)(seqhdr_end - seqhdr);
break;
}
seqhdr_end++;
@@ -2401,7 +2401,7 @@ bool SetRegKeyValue(LPCTSTR pszKey, LPCTSTR pszSubkey, LPCTSTR pszValueName, LPC
if (pszValue != 0) {
ec = ::RegSetValueEx(hKey, pszValueName, 0, REG_SZ,
reinterpret_cast<BYTE*>(const_cast<LPTSTR>(pszValue)),
- (_tcslen(pszValue) + 1) * sizeof(TCHAR));
+ (DWORD)(_tcslen(pszValue) + 1) * sizeof(TCHAR));
}
bOK = (ec == ERROR_SUCCESS);
@@ -2928,7 +2928,7 @@ void getExtraData(const BYTE *format, const GUID *formattype, const size_t forma
{
// code from LAV ...
const BYTE *extraposition = NULL;
- unsigned extralength = 0;
+ size_t extralength = 0;
if (*formattype == FORMAT_WaveFormatEx) {
WAVEFORMATEX *wfex = (WAVEFORMATEX *)format;
extraposition = format + sizeof(WAVEFORMATEX);
@@ -2953,7 +2953,7 @@ void getExtraData(const BYTE *format, const GUID *formattype, const size_t forma
if (extra && extralength)
memcpy(extra, format + sizeof(VORBISFORMAT2), extralength);
if (extralen)
- *extralen = extralength + offset;
+ *extralen = (unsigned int)extralength + offset;
return;
} else if (*formattype == FORMAT_VideoInfo) {
@@ -2975,7 +2975,7 @@ void getExtraData(const BYTE *format, const GUID *formattype, const size_t forma
if (extra && extralength)
memcpy(extra, extraposition, extralength);
if (extralen)
- *extralen = extralength;
+ *extralen = (unsigned int)extralength;
}
void audioFormatTypeHandler(const BYTE *format, const GUID *formattype, DWORD *pnSamples, WORD *pnChannels, WORD *pnBitsPerSample, WORD *pnBlockAlign, DWORD *pnBytesPerSec)