diff options
author | Kent Mein <mein@cs.umn.edu> | 2002-12-20 04:14:46 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2002-12-20 04:14:46 +0300 |
commit | 14819414e96409d06794e7c51772886575f23178 (patch) | |
tree | 34b8663761026e726451edb470af64c949763763 | |
parent | 734e358eb48e6eba6f8906340fc4cb4a809ca218 (diff) |
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
-rw-r--r-- | source/blender/imbuf/intern/hamx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/hamx.c b/source/blender/imbuf/intern/hamx.c index 4829b300e81..fefe8caa960 100644 --- a/source/blender/imbuf/intern/hamx.c +++ b/source/blender/imbuf/intern/hamx.c @@ -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); |