From: Reimar Döffinger Date: Sat, 14 Jan 2006 14:59:11 +0000 (+0000) Subject: get_byte may not return -1 on error, since it can lead to a negative backptr. X-Git-Tag: v0.5~13302 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9318df2f87c7a50ece1083a1b9e78c256e97a4a;p=platform%2Fupstream%2Flibav.git 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 --- diff --git a/libavcodec/lzo.c b/libavcodec/lzo.c index 46166a113..ab7766b57 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; } /**