diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-03-24 23:23:05 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-03-24 23:23:05 +0000 |
commit | 36376fa3ba8f9a882ce7bb123f9e02f0401bd6ab (patch) | |
tree | 7e60a128f4b7cd980092158e629b59d80f89bf75 /libavcodec/lzw.c | |
parent | ccba88d764e71cf8ece8f4861fbceab6ed6e805a (diff) | |
download | ffmpeg-36376fa3ba8f9a882ce7bb123f9e02f0401bd6ab.tar.gz |
break if eob is reached to avoid reading one too much byte
Originally committed as revision 8498 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lzw.c')
-rw-r--r-- | libavcodec/lzw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/lzw.c b/libavcodec/lzw.c index b5bb33a219..4afbc86f36 100644 --- a/libavcodec/lzw.c +++ b/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; |