diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-01-14 14:59:11 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-01-14 14:59:11 +0000 |
commit | a9318df2f87c7a50ece1083a1b9e78c256e97a4a (patch) | |
tree | be4855ac79835075feb166ff165dd2d9d55309cd /libavcodec | |
parent | 3f1965c4ac0747ffc8986b290af4824c6fccf052 (diff) | |
download | ffmpeg-a9318df2f87c7a50ece1083a1b9e78c256e97a4a.tar.gz |
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
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/lzo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lzo.c b/libavcodec/lzo.c index 46166a1133..ab7766b575 100644 --- a/libavcodec/lzo.c +++ b/libavcodec/lzo.c @@ -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; } /** |