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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-10-12 14:39:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-10-12 14:39:45 +0400
commit2ee4feda268f5c73938f78d06321163d8eeb467a (patch)
tree9b31d2c3aece8a2fca9a46f1fe6966c18e4d4203 /intern
parent167676dbfeae96459247dcf627e34aec1c409048 (diff)
c3d_import needed encoding defined for python 2.5+ to run.
wav file reading minor fix checking array bounds.
Diffstat (limited to 'intern')
-rw-r--r--intern/SoundSystem/intern/SND_Utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/SoundSystem/intern/SND_Utils.cpp b/intern/SoundSystem/intern/SND_Utils.cpp
index 1593dd6c794..78115807970 100644
--- a/intern/SoundSystem/intern/SND_Utils.cpp
+++ b/intern/SoundSystem/intern/SND_Utils.cpp
@@ -309,7 +309,7 @@ unsigned int SND_GetNumberOfSamples(void* sample, int sample_length)
{
offset += block_align;
- if (offset+4 > sample_length) /* save us from crashing */
+ if (offset+block_align > sample_length) /* save us from crashing */
return 0;
}
offset += 4;
@@ -347,7 +347,7 @@ unsigned int SND_GetHeaderSize(void* sample, int sample_length)
{
offset += block_align;
- if (offset+4 > sample_length) /* save us from crashing */
+ if (offset+block_align > sample_length) /* save us from crashing */
return 0;
}
headersize = offset + 8;