changeset 8473:412697cccf8e libavcodec

Ensure that an invalid run terminates the line.
author michael
date Fri, 26 Dec 2008 14:57:42 +0000
parents 771f97593234
children cb4009996efa
files faxcompr.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/faxcompr.c	Fri Dec 26 14:39:21 2008 +0000
+++ b/faxcompr.c	Fri Dec 26 14:57:42 2008 +0000
@@ -136,7 +136,7 @@
             if(pix_left <= 0){
                 if(!pix_left)
                     break;
-                runs[-1] = 0;
+                runs[-1] += pix_left;
                 av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n");
                 return -1;
             }