forked from bartvdbraak/blender
Ok since no one cares about this I put a 5 second fix on it and won't
worry about it anymore :) (initalized it to 0 and then later return 0 if its still 0 before doing the work) Kent -- mein@cs.umn.edu
This commit is contained in:
parent
734e358eb4
commit
14819414e9
@ -536,7 +536,7 @@ short imb_enc_anim(struct ImBuf *ibuf, int file)
|
||||
/* struct ImBuf *ibuf; */
|
||||
/* int file; */
|
||||
{
|
||||
int step, steps, size, i, skip;
|
||||
int step, size, i, skip, steps = 0;
|
||||
uchar *buf1, *crect, *_buf1, *_buf2, *bufend;
|
||||
short ok = TRUE;
|
||||
|
||||
@ -555,6 +555,7 @@ short imb_enc_anim(struct ImBuf *ibuf, int file)
|
||||
steps = 2;
|
||||
break;
|
||||
}
|
||||
if (steps == 0) return 0;
|
||||
|
||||
size = ((ibuf->x + 1)* (ibuf->y + 1)) / steps + 1024;
|
||||
if ((_buf1 = malloc(size)) == 0) return(0);
|
||||
|
Loading…
Reference in New Issue
Block a user