Revision 8c3eba7c libavcodec/h263dec.c

View differences:

libavcodec/h263dec.c
673 673
    if(s->last_picture_ptr==NULL && (s->pict_type==B_TYPE || s->dropable)) return get_consumed_bytes(s, buf_size);
674 674
    /* skip b frames if we are in a hurry */
675 675
    if(avctx->hurry_up && s->pict_type==B_TYPE) return get_consumed_bytes(s, buf_size);
676
    if(   (avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type==B_TYPE)
677
       || (avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type!=I_TYPE)
678
       ||  avctx->skip_frame >= AVDISCARD_ALL) 
679
        return get_consumed_bytes(s, buf_size);
676 680
    /* skip everything if we are in a hurry>=5 */
677 681
    if(avctx->hurry_up>=5) return get_consumed_bytes(s, buf_size);
678 682
    

Also available in: Unified diff