From 7727783512d611a2049f2d53f92d44685252bbed Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 12 Sep 2002 15:00:09 +0000 Subject: [PATCH] avoid nonsense frame-skip messages Originally committed as revision 929 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h263dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 3e7395f1f5..90b5a708f2 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -121,7 +121,7 @@ static int get_consumed_bytes(MpegEncContext *s, int buf_size){ return buf_size; }else{ if(pos==0) pos=1; //avoid infinite loops (i doubt thats needed but ...) - if(pos>buf_size) pos=buf_size; // oops ;) + if(pos+10>buf_size) pos=buf_size; // oops ;) return pos; }