projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a2d3fc
)
Fix an assert().
author
Daniel Verkamp
<daniel@drv.nu>
Mon, 16 Mar 2009 12:47:43 +0000
(12:47 +0000)
committer
Benoit Fouet
<benoit.fouet@free.fr>
Mon, 16 Mar 2009 12:47:43 +0000
(12:47 +0000)
Patch by Daniel Verkamp daniel drv nu
Originally committed as revision 18006 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/lzwenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/lzwenc.c
b/libavcodec/lzwenc.c
index
d174acd
..
4565b22
100644
(file)
--- a/
libavcodec/lzwenc.c
+++ b/
libavcodec/lzwenc.c
@@
-203,7
+203,7
@@
void ff_lzw_encode_init(LZWEncodeState * s, uint8_t * outbuf, int outsize, int m
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;