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:
authorKent Mein <mein@cs.umn.edu>2002-12-20 04:14:46 +0300
committerKent Mein <mein@cs.umn.edu>2002-12-20 04:14:46 +0300
commit14819414e96409d06794e7c51772886575f23178 (patch)
tree34b8663761026e726451edb470af64c949763763 /source/blender
parent734e358eb48e6eba6f8906340fc4cb4a809ca218 (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
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/imbuf/intern/hamx.c3
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);