changeset 3042:a434a3752e78 libavcodec

get_byte may not return -1 on error, since it can lead to a negative backptr.
author reimar
date Sat, 14 Jan 2006 14:59:11 +0000
parents 241b3a9bbd0c
children 583020ce54a8
files lzo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lzo.c	Sat Jan 14 12:55:20 2006 +0000
+++ b/lzo.c	Sat Jan 14 14:59:11 2006 +0000
@@ -34,7 +34,7 @@
     if (c->in < c->in_end)
         return *c->in++;
     c->error |= LZO_INPUT_DEPLETED;
-    return -1;
+    return 0;
 }
 
 /**