[Ffmpeg-cvslog] r7890 - trunk/libavcodec/error_resilience.c
michael
subversion
Fri Feb 9 03:25:23 CET 2007
Author: michael
Date: Fri Feb 9 03:25:23 2007
New Revision: 7890
Modified:
trunk/libavcodec/error_resilience.c
Log:
sanity check
Modified: trunk/libavcodec/error_resilience.c
==============================================================================
--- trunk/libavcodec/error_resilience.c (original)
+++ trunk/libavcodec/error_resilience.c Fri Feb 9 03:25:23 2007
@@ -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;
More information about the ffmpeg-cvslog
mailing list