Mercurial > libavcodec.hg
comparison error_resilience.c @ 904:06776293eabb libavcodec
use spatial error concealment if we dont have a previous frame
author | michaelni |
---|---|
date | Wed, 04 Dec 2002 11:25:53 +0000 |
parents | 22ee74da2cd3 |
children | b32afefe7d33 |
comparison
equal
deleted
inserted
replaced
903:22ee74da2cd3 | 904:06776293eabb |
---|---|
526 } | 526 } |
527 } | 527 } |
528 | 528 |
529 static int is_intra_more_likely(MpegEncContext *s){ | 529 static int is_intra_more_likely(MpegEncContext *s){ |
530 int is_intra_likely, i, j, undamaged_count, skip_amount, mb_x, mb_y; | 530 int is_intra_likely, i, j, undamaged_count, skip_amount, mb_x, mb_y; |
531 | |
532 if(s->last_picture.data[0]==NULL) return 1; //no previous frame available -> use spatial prediction | |
531 | 533 |
532 undamaged_count=0; | 534 undamaged_count=0; |
533 for(i=0; i<s->mb_num; i++){ | 535 for(i=0; i<s->mb_num; i++){ |
534 int error= s->error_status_table[i]; | 536 int error= s->error_status_table[i]; |
535 if(!((error&DC_ERROR) && (error&MV_ERROR))) | 537 if(!((error&DC_ERROR) && (error&MV_ERROR))) |