diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-21 11:59:05 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-21 11:59:05 +0400 |
commit | 7b2f02697a49724f280eb31255900e4626b5e12b (patch) | |
tree | 898c49a2417bbbe60f9615b7c33bec6f1dae27cb /src/filters/parser/AviSplitter | |
parent | 362bbc61eeaf9a02191d0cbd9f314ddb8d03923d (diff) |
avoid variable shadowing (/analyze C6246)
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5211 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/AviSplitter')
-rw-r--r-- | src/filters/parser/AviSplitter/AviSplitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filters/parser/AviSplitter/AviSplitter.cpp b/src/filters/parser/AviSplitter/AviSplitter.cpp index 4ce3b15fd..654540e10 100644 --- a/src/filters/parser/AviSplitter/AviSplitter.cpp +++ b/src/filters/parser/AviSplitter/AviSplitter.cpp @@ -252,8 +252,8 @@ HRESULT CAviSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) if (s->cs.GetCount() && pvih->AvgTimePerFrame > 0) {
UINT64 size = 0;
- for (unsigned int i = 0; i < s->cs.GetCount(); ++i) {
- size += s->cs[i].orgsize;
+ for (unsigned int j = 0; j < s->cs.GetCount(); ++j) {
+ size += s->cs[j].orgsize;
}
pvih->dwBitRate = (DWORD)(10000000.0 * size * 8 / (s->cs.GetCount() * pvih->AvgTimePerFrame) + 0.5);
// need calculate in double, because the (10000000ui64 * size * 8) can give overflow
|