1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-28 04:06:12 +02:00

Minor simplification.

Originally committed as revision 16343 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-12-26 17:32:11 +00:00
parent f78a679177
commit 2a522579aa

View File

@ -172,8 +172,8 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
if(!cmode){//pass mode
run_off += *ref++;
run = run_off - offs;
offs= run_off;
run_off += *ref++;
offs += run;
if(offs > width){
av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n");
return -1;