Commit 0709071a authored by michael's avatar michael

Move sync line pointers code to the end of the loop, its simpler that way.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16341 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4b7668c0
......@@ -170,11 +170,6 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
av_log(avctx, AV_LOG_ERROR, "Incorrect mode VLC\n");
return -1;
}
//sync line pointers
if(runs != run_start)while(run_off <= offs){
run_off += *ref++;
run_off += *ref++;
}
if(!cmode){//pass mode
run_off += *ref++;
run = run_off - offs;
......@@ -234,6 +229,11 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
saved_run = 0;
mode = !mode;
}
//sync line pointers
while(run_off <= offs){
run_off += *ref++;
run_off += *ref++;
}
}
*runs++ = saved_run;
*runs++ = 0;
......
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