[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec lzo.c,1.3,1.4

Reimar Döffinger CVS reimar
Sat Jan 14 15:59:13 CET 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv18117

Modified Files:
	lzo.c 
Log Message:
get_byte may not return -1 on error, since it can lead to a negative backptr.


Index: lzo.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/lzo.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- lzo.c	14 Jan 2006 12:55:20 -0000	1.3
+++ lzo.c	14 Jan 2006 14:59:11 -0000	1.4
@@ -34,7 +34,7 @@
     if (c->in < c->in_end)
         return *c->in++;
     c->error |= LZO_INPUT_DEPLETED;
-    return -1;
+    return 0;
 }
 
 /**





More information about the ffmpeg-cvslog mailing list