Commit d68542f0 authored by Michael Niedermayer's avatar Michael Niedermayer

Ensure that an invalid run terminates the line.

Originally committed as revision 16331 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ec5bdf49
......@@ -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;
}
......
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