diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-12-31 14:58:25 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-01-03 22:27:53 +0400 |
commit | fba3d9bccfa732c94527644626a046b7fb177e9f (patch) | |
tree | 6100d241fc6cd87cda92d867930743e279b1af0b /src/DSUtil/DSUtil.cpp | |
parent | 17b3ffed593104bffc3622e45760a388149d3b78 (diff) |
use the type specifier instead of a cast for float
Diffstat (limited to 'src/DSUtil/DSUtil.cpp')
-rw-r--r-- | src/DSUtil/DSUtil.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DSUtil/DSUtil.cpp b/src/DSUtil/DSUtil.cpp index 5617506f7..ab9a18ed7 100644 --- a/src/DSUtil/DSUtil.cpp +++ b/src/DSUtil/DSUtil.cpp @@ -77,7 +77,7 @@ void DumpStreamConfig(TCHAR* fn, IAMStreamConfig* pAMVSCCap) s.AppendFormat(_T("\tShrinkTaps %d, %d\n"), caps.ShrinkTapsX, caps.ShrinkTapsY);
s.AppendFormat(_T("\tFrameInterval %I64d, %I64d (%.4f, %.4f)\n"),
caps.MinFrameInterval, caps.MaxFrameInterval,
- (float)10000000 / caps.MinFrameInterval, (float)10000000 / caps.MaxFrameInterval);
+ 10000000.0f / caps.MinFrameInterval, 10000000.0f / caps.MaxFrameInterval);
s.AppendFormat(_T("\tBitsPerSecond %d - %d\n"), caps.MinBitsPerSecond, caps.MaxBitsPerSecond);
f.WriteString(s);
}
@@ -88,7 +88,7 @@ void DumpStreamConfig(TCHAR* fn, IAMStreamConfig* pAMVSCCap) pbh = &vih->bmiHeader;
s = _T("FORMAT_VideoInfo\n");
- s.AppendFormat(_T("\tAvgTimePerFrame %I64d, %.4f\n"), vih->AvgTimePerFrame, (float)10000000 / vih->AvgTimePerFrame);
+ s.AppendFormat(_T("\tAvgTimePerFrame %I64d, %.4f\n"), vih->AvgTimePerFrame, 10000000.0f / vih->AvgTimePerFrame);
s.AppendFormat(_T("\trcSource %d,%d,%d,%d\n"), vih->rcSource);
s.AppendFormat(_T("\trcTarget %d,%d,%d,%d\n"), vih->rcTarget);
f.WriteString(s);
@@ -97,7 +97,7 @@ void DumpStreamConfig(TCHAR* fn, IAMStreamConfig* pAMVSCCap) pbh = &vih->bmiHeader;
s = _T("FORMAT_VideoInfo2\n");
- s.AppendFormat(_T("\tAvgTimePerFrame %I64d, %.4f\n"), vih->AvgTimePerFrame, (float)10000000 / vih->AvgTimePerFrame);
+ s.AppendFormat(_T("\tAvgTimePerFrame %I64d, %.4f\n"), vih->AvgTimePerFrame, 10000000.0f / vih->AvgTimePerFrame);
s.AppendFormat(_T("\trcSource %d,%d,%d,%d\n"), vih->rcSource);
s.AppendFormat(_T("\trcTarget %d,%d,%d,%d\n"), vih->rcTarget);
s.AppendFormat(_T("\tdwInterlaceFlags 0x%x\n"), vih->dwInterlaceFlags);
|