1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

Ensure that an invalid run terminates the line.

Originally committed as revision 16331 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-12-26 14:57:42 +00:00
parent ec5bdf4989
commit d68542f019

View File

@ -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;
} }