From a9318df2f87c7a50ece1083a1b9e78c256e97a4a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= <Reimar.Doeffinger@gmx.de>
Date: Sat, 14 Jan 2006 14:59:11 +0000
Subject: [PATCH] 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
---
 libavcodec/lzo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/lzo.c b/libavcodec/lzo.c
index 46166a11336..ab7766b5752 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;
 }
 
 /**
-- 
GitLab