Mercurial > libavcodec.hg
changeset 9178:c1e6aaea75f2 libavcodec
Fix an assert().
Patch by Daniel Verkamp daniel drv nu
author | benoit |
---|---|
date | Mon, 16 Mar 2009 12:47:43 +0000 |
parents | 4b1736ba9f2f |
children | 4172c9ef331a |
files | lzwenc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lzwenc.c Mon Mar 16 03:56:42 2009 +0000 +++ b/lzwenc.c Mon Mar 16 12:47:43 2009 +0000 @@ -203,7 +203,7 @@ s->maxbits = maxbits; init_put_bits(&s->pb, outbuf, 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->output_bytes = 0; s->last_code = LZW_PREFIX_EMPTY;