# HG changeset patch # User michael # Date 1170987923 0 # Node ID f334529b46ecdef4353ae202ab5332e980912f37 # Parent ff5472c81ab8eac4b022664991a2a36055b48686 sanity check diff -r ff5472c81ab8 -r f334529b46ec error_resilience.c --- a/error_resilience.c Fri Feb 09 02:21:34 2007 +0000 +++ b/error_resilience.c Fri Feb 09 02:25:23 2007 +0000 @@ -618,6 +618,11 @@ const int end_xy = s->mb_index2xy[end_i]; 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; mask &= ~VP_START;