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

Originally committed as revision 8498 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Baptiste Coudurier 18 years ago
parent ccba88d764
commit 36376fa3ba
  1. 1
      libavcodec/lzw.c

@ -77,6 +77,7 @@ static int lzw_get_code(struct LZWState * s)
s->bs = sizbuf;
if(!sizbuf) {
s->eob_reached = 1;
break;
}
}
s->bbuf |= (*s->pbuf++) << s->bbits;

Loading…
Cancel
Save