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:
authorCampbell Barton <ideasman42@gmail.com>2008-04-08 19:07:40 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-04-08 19:07:40 +0400
commitfa5d0309b2b9f8d62f1ccd3666cad3a793c9d920 (patch)
tree6f556378122779b212fe2204fbf656a40efbcabd /source/blender/src/sequence.c
parentca982d2a23b3de3c6e1f15b4aa3da49ab110763a (diff)
setting the blend value for a sequencer strip would crash when the strip had both char and float buffers.
Diffstat (limited to 'source/blender/src/sequence.c')
-rw-r--r--source/blender/src/sequence.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/sequence.c b/source/blender/src/sequence.c
index 62bf02d4ef1..9e6f1996e75 100644
--- a/source/blender/src/sequence.c
+++ b/source/blender/src/sequence.c
@@ -670,12 +670,11 @@ static void multibuf(ImBuf *ibuf, float fmul)
int a, mul, icol;
mul= (int)(256.0*fmul);
-
- a= ibuf->x*ibuf->y;
rt= (char *)ibuf->rect;
rt_float = ibuf->rect_float;
if (rt) {
+ a= ibuf->x*ibuf->y;
while(a--) {
icol= (mul*rt[0])>>8;
@@ -691,6 +690,7 @@ static void multibuf(ImBuf *ibuf, float fmul)
}
}
if (rt_float) {
+ a= ibuf->x*ibuf->y;
while(a--) {
rt_float[0] *= fmul;
rt_float[1] *= fmul;