mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Fix an assert().
Patch by Daniel Verkamp daniel drv nu Originally committed as revision 18006 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6a2d3fc30b
commit
8127c4208c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user