get_byte may not return -1 on error, since it can lead to a negative backptr.

Originally committed as revision 4854 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Reimar Döffinger 2006-01-14 14:59:11 +00:00
parent 3f1965c4ac
commit a9318df2f8
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ static inline int get_byte(LZOContext *c) {
if (c->in < c->in_end)
return *c->in++;
c->error |= LZO_INPUT_DEPLETED;
return -1;
return 0;
}
/**