Mercurial > libavcodec.hg
comparison h263dec.c @ 2052:4032a03192ec libavcodec
infinite loop fix
author | michael |
---|---|
date | Thu, 03 Jun 2004 14:17:59 +0000 |
parents | 141a9539e270 |
children | 9c29987380e4 |
comparison
equal
deleted
inserted
replaced
2051:b432d6a4c7ca | 2052:4032a03192ec |
---|---|
649 // for hurry_up==5 | 649 // for hurry_up==5 |
650 s->current_picture.pict_type= s->pict_type; | 650 s->current_picture.pict_type= s->pict_type; |
651 s->current_picture.key_frame= s->pict_type == I_TYPE; | 651 s->current_picture.key_frame= s->pict_type == I_TYPE; |
652 | 652 |
653 /* skip b frames if we dont have reference frames */ | 653 /* skip b frames if we dont have reference frames */ |
654 if(s->last_picture_ptr==NULL && s->pict_type==B_TYPE) return get_consumed_bytes(s, buf_size); | 654 if(s->last_picture_ptr==NULL && (s->pict_type==B_TYPE || s->dropable)) return get_consumed_bytes(s, buf_size); |
655 /* skip b frames if we are in a hurry */ | 655 /* skip b frames if we are in a hurry */ |
656 if(avctx->hurry_up && s->pict_type==B_TYPE) return get_consumed_bytes(s, buf_size); | 656 if(avctx->hurry_up && s->pict_type==B_TYPE) return get_consumed_bytes(s, buf_size); |
657 /* skip everything if we are in a hurry>=5 */ | 657 /* skip everything if we are in a hurry>=5 */ |
658 if(avctx->hurry_up>=5) return get_consumed_bytes(s, buf_size); | 658 if(avctx->hurry_up>=5) return get_consumed_bytes(s, buf_size); |
659 | 659 |