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; }