aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-09-12 15:00:09 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-09-12 15:00:09 +0000
commit7727783512d611a2049f2d53f92d44685252bbed (patch)
treec66921aa2b478b39be57131a98b1cf914a947705 /libavcodec/h263dec.c
parentdf266acdec6235c09605213837a30ca3c63c7e82 (diff)
downloadffmpeg-7727783512d611a2049f2d53f92d44685252bbed.tar.gz
avoid nonsense frame-skip messages
Originally committed as revision 929 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c2
1 files changed, 1 insertions, 1 deletions
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;
}