diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-12-26 14:57:42 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-12-26 14:57:42 +0000 |
commit | d68542f019c89e7938297a18da282e3a892718aa (patch) | |
tree | b1bb3623237728163588f4cbe2ca711795371d64 /libavcodec/faxcompr.c | |
parent | ec5bdf498999cb745761d9fde922eb219cd4c73a (diff) | |
download | ffmpeg-d68542f019c89e7938297a18da282e3a892718aa.tar.gz |
Ensure that an invalid run terminates the line.
Originally committed as revision 16331 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/faxcompr.c')
-rw-r--r-- | libavcodec/faxcompr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c index 0853ed4af6..f8a8b93841 100644 --- a/libavcodec/faxcompr.c +++ b/libavcodec/faxcompr.c @@ -136,7 +136,7 @@ static int decode_group3_1d_line(AVCodecContext *avctx, GetBitContext *gb, 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; } |