Revision c28112fa libavcodec/error_resilience.c

View differences:

libavcodec/error_resilience.c
629 629
            undamaged_count++;
630 630
    }
631 631

  
632
    if(s->codec_id == CODEC_ID_H264){
633
        H264Context *h= (void*)s;
634
        if(h->ref_count[0] <= 0 || !h->ref_list[0][0].data[0])
635
            return 1;
636
    }
637

  
632 638
    if(undamaged_count < 5) return 0; //almost all MBs damaged -> use temporal prediction
633 639

  
634 640
    //prevent dsp.sad() check, that requires access to the image

Also available in: Unified diff