Mercurial > libavcodec.hg
comparison error_resilience.c @ 4503:f334529b46ec libavcodec
sanity check
| author | michael |
|---|---|
| date | Fri, 09 Feb 2007 02:25:23 +0000 |
| parents | 23da44e8fd05 |
| children | a96d905dcbaa |
comparison
equal
deleted
inserted
replaced
| 4502:ff5472c81ab8 | 4503:f334529b46ec |
|---|---|
| 616 const int end_i = clip(endx + endy * s->mb_width , 0, s->mb_num); | 616 const int end_i = clip(endx + endy * s->mb_width , 0, s->mb_num); |
| 617 const int start_xy= s->mb_index2xy[start_i]; | 617 const int start_xy= s->mb_index2xy[start_i]; |
| 618 const int end_xy = s->mb_index2xy[end_i]; | 618 const int end_xy = s->mb_index2xy[end_i]; |
| 619 int mask= -1; | 619 int mask= -1; |
| 620 | 620 |
| 621 if(start_i > end_i || start_xy > end_xy){ | |
| 622 av_log(s->avctx, AV_LOG_ERROR, "internal error, slice end before start\n"); | |
| 623 return; | |
| 624 } | |
| 625 | |
| 621 if(!s->error_resilience) return; | 626 if(!s->error_resilience) return; |
| 622 | 627 |
| 623 mask &= ~VP_START; | 628 mask &= ~VP_START; |
| 624 if(status & (AC_ERROR|AC_END)){ | 629 if(status & (AC_ERROR|AC_END)){ |
| 625 mask &= ~(AC_ERROR|AC_END); | 630 mask &= ~(AC_ERROR|AC_END); |
