Commit 8d2a24a8 authored by michael's avatar michael

sanity check


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7890 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0e3b97d0
...@@ -618,6 +618,11 @@ void ff_er_add_slice(MpegEncContext *s, int startx, int starty, int endx, int en ...@@ -618,6 +618,11 @@ void ff_er_add_slice(MpegEncContext *s, int startx, int starty, int endx, int en
const int end_xy = s->mb_index2xy[end_i]; const int end_xy = s->mb_index2xy[end_i];
int mask= -1; int mask= -1;
if(start_i > end_i || start_xy > end_xy){
av_log(s->avctx, AV_LOG_ERROR, "internal error, slice end before start\n");
return;
}
if(!s->error_resilience) return; if(!s->error_resilience) return;
mask &= ~VP_START; mask &= ~VP_START;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment