Mercurial > libavcodec.hg
diff error_resilience.c @ 4503:f334529b46ec libavcodec
sanity check
author | michael |
---|---|
date | Fri, 09 Feb 2007 02:25:23 +0000 |
parents | 23da44e8fd05 |
children | a96d905dcbaa |
line wrap: on
line diff
--- 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;