changeset 4715:fdbf89c6e2a7 libavcodec

break if eob is reached to avoid reading one too much byte
author bcoudurier
date Sat, 24 Mar 2007 23:23:05 +0000
parents fc70a43a4f01
children 8c00d22d45a0
files lzw.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lzw.c	Sat Mar 24 12:07:07 2007 +0000
+++ b/lzw.c	Sat Mar 24 23:23:05 2007 +0000
@@ -77,6 +77,7 @@
                 s->bs = sizbuf;
                 if(!sizbuf) {
                     s->eob_reached = 1;
+                    break;
                 }
             }
             s->bbuf |= (*s->pbuf++) << s->bbits;