Commit 3855e28e authored by iive's avatar iive

On bitstream error is_intra_more_likely() could use dsp.sad[0]() that will...

On bitstream error is_intra_more_likely() could use dsp.sad[0]() that will segfault when xvmc is in use.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10610 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b33be4ad
......@@ -563,6 +563,11 @@ static int is_intra_more_likely(MpegEncContext *s){
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment