Revision 8ed2ae09 libavcodec/h263dec.c

View differences:

libavcodec/h263dec.c
591 591
    if((s->codec_id==CODEC_ID_H263 || s->codec_id==CODEC_ID_H263P || s->codec_id == CODEC_ID_H263I))
592 592
        s->gob_index = ff_h263_get_gob_height(s);
593 593

  
594
    // for hurry_up==5
594
    // for skipping the frame
595 595
    s->current_picture.pict_type= s->pict_type;
596 596
    s->current_picture.key_frame= s->pict_type == FF_I_TYPE;
597 597

  
598 598
    /* skip B-frames if we don't have reference frames */
599 599
    if(s->last_picture_ptr==NULL && (s->pict_type==FF_B_TYPE || s->dropable)) return get_consumed_bytes(s, buf_size);
600
#if FF_API_HURRY_UP
600 601
    /* skip b frames if we are in a hurry */
601 602
    if(avctx->hurry_up && s->pict_type==FF_B_TYPE) return get_consumed_bytes(s, buf_size);
603
#endif
602 604
    if(   (avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type==FF_B_TYPE)
603 605
       || (avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type!=FF_I_TYPE)
604 606
       ||  avctx->skip_frame >= AVDISCARD_ALL)
605 607
        return get_consumed_bytes(s, buf_size);
608
#if FF_API_HURRY_UP
606 609
    /* skip everything if we are in a hurry>=5 */
607 610
    if(avctx->hurry_up>=5) return get_consumed_bytes(s, buf_size);
611
#endif
608 612

  
609 613
    if(s->next_p_frame_damaged){
610 614
        if(s->pict_type==FF_B_TYPE)

Also available in: Unified diff