setting the blend value for a sequencer strip would crash when the strip had both char and float buffers.

This commit is contained in:
2008-04-08 15:07:40 +00:00
parent ca982d2a23
commit fa5d0309b2

View File

@@ -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;