Commit ae6b1934 authored by michael's avatar michael

Ensure that an invalid run terminates the line.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16331 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e9bd3982
...@@ -136,7 +136,7 @@ static int decode_group3_1d_line(AVCodecContext *avctx, GetBitContext *gb, ...@@ -136,7 +136,7 @@ static int decode_group3_1d_line(AVCodecContext *avctx, GetBitContext *gb,
if(pix_left <= 0){ if(pix_left <= 0){
if(!pix_left) if(!pix_left)
break; break;
runs[-1] = 0; runs[-1] += pix_left;
av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n"); av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n");
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment