summaryrefslogtreecommitdiff
path: root/libs/ardour/panner.cc
diff options
context:
space:
mode:
authorJesse Chappell <jesse@essej.net>2006-02-20 21:40:20 +0000
committerJesse Chappell <jesse@essej.net>2006-02-20 21:40:20 +0000
commit94ba45c0571e6822268edf0ea3279901d0b93e63 (patch)
treec1d467000ca7b6bb92e7a2b17a27bba7d95f0e07 /libs/ardour/panner.cc
parent1d42712574b74600b7731e5737ccac2db185733b (diff)
fixed crash potential issues where nframes may be 0
git-svn-id: svn://localhost/trunk/ardour2@341 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/panner.cc')
-rw-r--r--libs/ardour/panner.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/panner.cc b/libs/ardour/panner.cc
index 85feed6be9..6b0013cada 100644
--- a/libs/ardour/panner.cc
+++ b/libs/ardour/panner.cc
@@ -613,7 +613,8 @@ EqualPowerStereoPanner::distribute_automated (Sample* src, Sample** obufs,
/* store effective pan position. do this even if we are muted */
- effective_x = buffers[0][nframes-1];
+ if (nframes > 0)
+ effective_x = buffers[0][nframes-1];
if (_muted) {
return;