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
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-11-14 23:44:49 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-11-14 23:44:49 +0400
commitff82aa8677236ace9686681ee64f06e191d171c3 (patch)
tree3106c00e72ec399051e7cb4889777ff3d3cdaa9c /intern/audaspace
parent21fa7e0b866e6ff3f27e38a23a078e5afbb2266b (diff)
Fix for uninitialized usage of spos in AUD_LinearResampleReader::read
Patch is verified by neXyon
Diffstat (limited to 'intern/audaspace')
-rw-r--r--intern/audaspace/intern/AUD_LinearResampleReader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/audaspace/intern/AUD_LinearResampleReader.cpp b/intern/audaspace/intern/AUD_LinearResampleReader.cpp
index 08644d0a119..aff62d7c3aa 100644
--- a/intern/audaspace/intern/AUD_LinearResampleReader.cpp
+++ b/intern/audaspace/intern/AUD_LinearResampleReader.cpp
@@ -155,6 +155,9 @@ void AUD_LinearResampleReader::read(int& length, bool& eos, sample_t* buffer)
m_cache_ok = true;
}
+ if(length == 0)
+ return;
+
for(int channel = 0; channel < m_channels; channel++)
{
for(int i = 0; i < length; i++)