Revision f66e4f5f libavcodec/error_resilience.c
libavcodec/error_resilience.c | ||
---|---|---|
612 | 612 |
* error of the same type occured |
613 | 613 |
*/ |
614 | 614 |
void ff_er_add_slice(MpegEncContext *s, int startx, int starty, int endx, int endy, int status){ |
615 |
const int start_i= clip(startx + starty * s->mb_width , 0, s->mb_num-1); |
|
616 |
const int end_i = clip(endx + endy * s->mb_width , 0, s->mb_num); |
|
615 |
const int start_i= av_clip(startx + starty * s->mb_width , 0, s->mb_num-1);
|
|
616 |
const int end_i = av_clip(endx + endy * s->mb_width , 0, s->mb_num);
|
|
617 | 617 |
const int start_xy= s->mb_index2xy[start_i]; |
618 | 618 |
const int end_xy = s->mb_index2xy[end_i]; |
619 | 619 |
int mask= -1; |
Also available in: Unified diff