mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Ensure that no non-existing frame is used.
Fixes issue624. Originally committed as revision 15416 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
05b90fc0c5
commit
68997192eb
@ -551,7 +551,7 @@ score_sum+= best_score;
|
||||
static int is_intra_more_likely(MpegEncContext *s){
|
||||
int is_intra_likely, i, j, undamaged_count, skip_amount, mb_x, mb_y;
|
||||
|
||||
if(s->last_picture_ptr==NULL) return 1; //no previous frame available -> use spatial prediction
|
||||
if(!s->last_picture_ptr || !s->last_picture_ptr->data[0]) return 1; //no previous frame available -> use spatial prediction
|
||||
|
||||
undamaged_count=0;
|
||||
for(i=0; i<s->mb_num; i++){
|
||||
|
Loading…
Reference in New Issue
Block a user