Revision 68997192

View differences:

libavcodec/error_resilience.c
551 551
static int is_intra_more_likely(MpegEncContext *s){
552 552
    int is_intra_likely, i, j, undamaged_count, skip_amount, mb_x, mb_y;
553 553

  
554
    if(s->last_picture_ptr==NULL) return 1; //no previous frame available -> use spatial prediction
554
    if(!s->last_picture_ptr || !s->last_picture_ptr->data[0]) return 1; //no previous frame available -> use spatial prediction
555 555

  
556 556
    undamaged_count=0;
557 557
    for(i=0; i<s->mb_num; i++){

Also available in: Unified diff