Revision 2417652e libavcodec/h263dec.c

View differences:

libavcodec/h263dec.c
74 74
        return -1;
75 75
    }
76 76
    s->codec_id= avctx->codec->id;
77
    avctx->mbskip_table= s->mbskip_table;
77 78
    
78 79
    /* for h263, we allocate the images after having read the header */
79 80
    if (avctx->codec->id != CODEC_ID_H263 && avctx->codec->id != CODEC_ID_MPEG4)
......
108 109
    printf("*****frame %d size=%d\n", avctx->frame_number, buf_size);
109 110
    printf("bytes=%x %x %x %x\n", buf[0], buf[1], buf[2], buf[3]);
110 111
#endif
112

  
113
    s->hurry_up= avctx->hurry_up;
111 114
    
112 115
    /* no supplementary picture */
113 116
    if (buf_size == 0) {
......
154 157
        return -1;
155 158
    /* skip b frames if we dont have reference frames */
156 159
    if(s->num_available_buffers<2 && s->pict_type==B_TYPE) return 0;
160
    /* skip b frames if we are in a hurry */
161
    if(s->hurry_up && s->pict_type==B_TYPE) return 0;
157 162
        
158 163
    MPV_frame_start(s);
159 164

  

Also available in: Unified diff