diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-12-27 13:00:02 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-12-27 13:00:02 +0000 |
| commit | 589fdd74490ce92d5532a89726e26d9966e10d91 (patch) | |
| tree | a535887386fe1a4eda8cdedc7823cd0ba16c054c /src/plugins/Visual/projectm/projectmplugin.cpp | |
| parent | 4f38154653813fe88b7b332f4d3ea10bba59d92f (diff) | |
| download | qmmp-589fdd74490ce92d5532a89726e26d9966e10d91.tar.gz qmmp-589fdd74490ce92d5532a89726e26d9966e10d91.tar.bz2 qmmp-589fdd74490ce92d5532a89726e26d9966e10d91.zip | |
fixed regression
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5904 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Visual/projectm/projectmplugin.cpp')
| -rw-r--r-- | src/plugins/Visual/projectm/projectmplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Visual/projectm/projectmplugin.cpp b/src/plugins/Visual/projectm/projectmplugin.cpp index 18bed4bcc..a3efab8e1 100644 --- a/src/plugins/Visual/projectm/projectmplugin.cpp +++ b/src/plugins/Visual/projectm/projectmplugin.cpp @@ -90,7 +90,7 @@ void ProjectMPlugin::add (float *data, size_t samples, int chan) if(chan == 1) { - for(size_t i = 0; i <= frames; i++) + for(size_t i = 0; i < frames; i++) { m_buf[0][i] = data[i*chan] * 32767.0; m_buf[1][i] = data[i*chan] * 32767.0; @@ -99,7 +99,7 @@ void ProjectMPlugin::add (float *data, size_t samples, int chan) } else { - for(size_t i = 0; i <= frames; i++) + for(size_t i = 0; i < frames; i++) { m_buf[0][i] = data[i*chan] * 32767.0; m_buf[1][i] = data[i*chan+1] * 32767.0; |
