# HG changeset patch # User iive # Date 1191011912 0 # Node ID 4134f79e37b31d6543dcff5ae0e5e27d01278aaa # Parent 81fff8db79ccf647bd06af8d0b0fa57471f9d221 On bitstream error is_intra_more_likely() could use dsp.sad[0]() that will segfault when xvmc is in use. diff -r 81fff8db79cc -r 4134f79e37b3 error_resilience.c --- a/error_resilience.c Fri Sep 28 06:06:18 2007 +0000 +++ b/error_resilience.c Fri Sep 28 20:38:32 2007 +0000 @@ -563,6 +563,11 @@ if(undamaged_count < 5) return 0; //allmost all MBs damaged -> use temporal prediction +#ifdef HAVE_XVMC + //prevent dsp.sad() check, that requires access to the image + if(s->avctx->xvmc_acceleration && s->pict_type==I_TYPE) return 1; +#endif + skip_amount= FFMAX(undamaged_count/50, 1); //check only upto 50 MBs is_intra_likely=0;