Revision 95bd18ee

View differences:

libavcodec/rv34.c
1452 1452
        av_log(avctx, AV_LOG_ERROR, "First slice header is incorrect\n");
1453 1453
        return -1;
1454 1454
    }
1455
    if((!s->last_picture_ptr || !s->last_picture_ptr->data[0]) && si.type == FF_P_TYPE)
1456
        return -1;
1455 1457
    if((!s->last_picture_ptr || !s->last_picture_ptr->data[0]) && si.type == FF_B_TYPE)
1456 1458
        return -1;
1459
    if((!s->next_picture_ptr || !s->next_picture_ptr->data[0]) && si.type == FF_B_TYPE)
1460
        return -1;
1457 1461
    /* skip b frames if we are in a hurry */
1458 1462
    if(avctx->hurry_up && si.type==FF_B_TYPE) return buf_size;
1459 1463
    if(   (avctx->skip_frame >= AVDISCARD_NONREF && si.type==FF_B_TYPE)

Also available in: Unified diff