move eob_reached logic into ff_lzw_decode_tail() which simplifies the code, avoids...
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 25 Mar 2007 15:43:46 +0000 (15:43 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 25 Mar 2007 15:43:46 +0000 (15:43 +0000)
commit5f01beb54846de8764c15206aa63086238dde493
treef42a5bf28204e72ff9a09fd96e707fe09c04cbf5
parentc59f24e657d08b4101483eea728707aa9964b553
move eob_reached logic into ff_lzw_decode_tail() which simplifies the code, avoids some checks in the innermost loop and also gets rid of the controversal break while hopefully retaining the last byte in a valid bytestream, invalid bytestreams still can have very significant overread

Originally committed as revision 8517 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/lzw.c