Commit 6aa28462 authored by benoit's avatar benoit

Fix an assert().

Patch by Daniel Verkamp daniel drv nu


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18006 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e66f7cca
...@@ -203,7 +203,7 @@ void ff_lzw_encode_init(LZWEncodeState * s, uint8_t * outbuf, int outsize, int m ...@@ -203,7 +203,7 @@ void ff_lzw_encode_init(LZWEncodeState * s, uint8_t * outbuf, int outsize, int m
s->maxbits = maxbits; s->maxbits = maxbits;
init_put_bits(&s->pb, outbuf, outsize); init_put_bits(&s->pb, outbuf, outsize);
s->bufsize = outsize; s->bufsize = outsize;
assert(9 <= s->maxbits && s->maxbits <= s->maxbits); assert(s->maxbits >= 9 && s->maxbits <= LZW_MAXBITS);
s->maxcode = 1 << s->maxbits; s->maxcode = 1 << s->maxbits;
s->output_bytes = 0; s->output_bytes = 0;
s->last_code = LZW_PREFIX_EMPTY; s->last_code = LZW_PREFIX_EMPTY;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment