mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
On bitstream error is_intra_more_likely() could use dsp.sad[0]() that will segfault when xvmc is in use.
Originally committed as revision 10610 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a1748c6744
commit
551109d48a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user