[FFmpeg-cvslog] r18006 - trunk/libavcodec/lzwenc.c

benoit subversion
Mon Mar 16 13:47:43 CET 2009


Author: benoit
Date: Mon Mar 16 13:47:43 2009
New Revision: 18006

Log:
Fix an assert().
Patch by Daniel Verkamp daniel drv nu

Modified:
   trunk/libavcodec/lzwenc.c

Modified: trunk/libavcodec/lzwenc.c
==============================================================================
--- trunk/libavcodec/lzwenc.c	Mon Mar 16 13:47:34 2009	(r18005)
+++ trunk/libavcodec/lzwenc.c	Mon Mar 16 13:47:43 2009	(r18006)
@@ -203,7 +203,7 @@ void ff_lzw_encode_init(LZWEncodeState *
     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;




More information about the ffmpeg-cvslog mailing list