Commit d358b551 authored by reimar's avatar reimar

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4854 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e710448d
...@@ -34,7 +34,7 @@ static inline int get_byte(LZOContext *c) { ...@@ -34,7 +34,7 @@ static inline int get_byte(LZOContext *c) {
if (c->in < c->in_end) if (c->in < c->in_end)
return *c->in++; return *c->in++;
c->error |= LZO_INPUT_DEPLETED; c->error |= LZO_INPUT_DEPLETED;
return -1; return 0;
} }
/** /**
......
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