You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user