Commit 36376fa3 authored by Baptiste Coudurier's avatar Baptiste Coudurier

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

Originally committed as revision 8498 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ccba88d7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment