Skip to content
Snippets Groups Projects
Commit a9318df2 authored by Reimar Döffinger's avatar Reimar Döffinger
Browse files

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
parent 3f1965c4
No related branches found
No related tags found
No related merge requests found
...@@ -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;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment