Mercurial > libavcodec.hg
comparison error_resilience.c @ 5730:4134f79e37b3 libavcodec
On bitstream error is_intra_more_likely() could use dsp.sad[0]() that will segfault when xvmc is in use.
| author | iive |
|---|---|
| date | Fri, 28 Sep 2007 20:38:32 +0000 |
| parents | 4dbe6578f811 |
| children | 8e63d869a904 |
comparison
equal
deleted
inserted
replaced
| 5729:81fff8db79cc | 5730:4134f79e37b3 |
|---|---|
| 561 undamaged_count++; | 561 undamaged_count++; |
| 562 } | 562 } |
| 563 | 563 |
| 564 if(undamaged_count < 5) return 0; //allmost all MBs damaged -> use temporal prediction | 564 if(undamaged_count < 5) return 0; //allmost all MBs damaged -> use temporal prediction |
| 565 | 565 |
| 566 #ifdef HAVE_XVMC | |
| 567 //prevent dsp.sad() check, that requires access to the image | |
| 568 if(s->avctx->xvmc_acceleration && s->pict_type==I_TYPE) return 1; | |
| 569 #endif | |
| 570 | |
| 566 skip_amount= FFMAX(undamaged_count/50, 1); //check only upto 50 MBs | 571 skip_amount= FFMAX(undamaged_count/50, 1); //check only upto 50 MBs |
| 567 is_intra_likely=0; | 572 is_intra_likely=0; |
| 568 | 573 |
| 569 j=0; | 574 j=0; |
| 570 for(mb_y= 0; mb_y<s->mb_height-1; mb_y++){ | 575 for(mb_y= 0; mb_y<s->mb_height-1; mb_y++){ |
