Revision 8ed2ae09 libavcodec/rv34.c

View differences:

libavcodec/rv34.c
1454 1454
    }
1455 1455
    if((!s->last_picture_ptr || !s->last_picture_ptr->data[0]) && si.type == FF_B_TYPE)
1456 1456
        return -1;
1457
#if FF_API_HURRY_UP
1457 1458
    /* skip b frames if we are in a hurry */
1458 1459
    if(avctx->hurry_up && si.type==FF_B_TYPE) return buf_size;
1460
#endif
1459 1461
    if(   (avctx->skip_frame >= AVDISCARD_NONREF && si.type==FF_B_TYPE)
1460 1462
       || (avctx->skip_frame >= AVDISCARD_NONKEY && si.type!=FF_I_TYPE)
1461 1463
       ||  avctx->skip_frame >= AVDISCARD_ALL)
1462 1464
        return buf_size;
1465
#if FF_API_HURRY_UP
1463 1466
    /* skip everything if we are in a hurry>=5 */
1464 1467
    if(avctx->hurry_up>=5)
1465 1468
        return buf_size;
1469
#endif
1466 1470

  
1467 1471
    for(i=0; i<slice_count; i++){
1468 1472
        int offset= get_slice_offset(avctx, slices_hdr, i);

Also available in: Unified diff