Mercurial > libavcodec.hg
comparison error_resilience.c @ 1138:e10e841c9bf0 libavcodec
field pic decoding cleanup
| author | michaelni |
|---|---|
| date | Sun, 16 Mar 2003 20:22:22 +0000 |
| parents | 1e39f273ecd6 |
| children | 21c85c4ab2f0 |
comparison
equal
deleted
inserted
replaced
| 1137:7fb0b38ab5a3 | 1138:e10e841c9bf0 |
|---|---|
| 532 } | 532 } |
| 533 | 533 |
| 534 static int is_intra_more_likely(MpegEncContext *s){ | 534 static int is_intra_more_likely(MpegEncContext *s){ |
| 535 int is_intra_likely, i, j, undamaged_count, skip_amount, mb_x, mb_y; | 535 int is_intra_likely, i, j, undamaged_count, skip_amount, mb_x, mb_y; |
| 536 | 536 |
| 537 if(s->last_picture.data[0]==NULL) return 1; //no previous frame available -> use spatial prediction | 537 if(s->last_picture_ptr==NULL) return 1; //no previous frame available -> use spatial prediction |
| 538 | 538 |
| 539 undamaged_count=0; | 539 undamaged_count=0; |
| 540 for(i=0; i<s->mb_num; i++){ | 540 for(i=0; i<s->mb_num; i++){ |
| 541 int error= s->error_status_table[i]; | 541 int error= s->error_status_table[i]; |
| 542 if(!((error&DC_ERROR) && (error&MV_ERROR))) | 542 if(!((error&DC_ERROR) && (error&MV_ERROR))) |
