# HG changeset patch # User michael # Date 1086272279 0 # Node ID 4032a03192ecf2cfe17d910e583ebe4e882e8c87 # Parent b432d6a4c7ca5f5da9fa39719870d6e42facdd21 infinite loop fix diff -r b432d6a4c7ca -r 4032a03192ec h263dec.c --- a/h263dec.c Tue Jun 01 11:53:03 2004 +0000 +++ b/h263dec.c Thu Jun 03 14:17:59 2004 +0000 @@ -651,7 +651,7 @@ s->current_picture.key_frame= s->pict_type == I_TYPE; /* skip b frames if we dont have reference frames */ - if(s->last_picture_ptr==NULL && s->pict_type==B_TYPE) return get_consumed_bytes(s, buf_size); + if(s->last_picture_ptr==NULL && (s->pict_type==B_TYPE || s->dropable)) return get_consumed_bytes(s, buf_size); /* skip b frames if we are in a hurry */ if(avctx->hurry_up && s->pict_type==B_TYPE) return get_consumed_bytes(s, buf_size); /* skip everything if we are in a hurry>=5 */