[Ffmpeg-cvslog] r8498 - trunk/libavcodec/lzw.c

bcoudurier subversion
Sun Mar 25 00:23:05 CET 2007


Author: bcoudurier
Date: Sun Mar 25 00:23:05 2007
New Revision: 8498

Modified:
   trunk/libavcodec/lzw.c

Log:
break if eob is reached to avoid reading one too much byte

Modified: trunk/libavcodec/lzw.c
==============================================================================
--- trunk/libavcodec/lzw.c	(original)
+++ trunk/libavcodec/lzw.c	Sun Mar 25 00:23:05 2007
@@ -77,6 +77,7 @@ static int lzw_get_code(struct LZWState 
                 s->bs = sizbuf;
                 if(!sizbuf) {
                     s->eob_reached = 1;
+                    break;
                 }
             }
             s->bbuf |= (*s->pbuf++) << s->bbits;




More information about the ffmpeg-cvslog mailing list