Commit 537bf426 authored by Michael Niedermayer's avatar Michael Niedermayer

Simplify vertical mode

Originally committed as revision 16347 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent eb0094b2
...@@ -212,9 +212,6 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb, ...@@ -212,9 +212,6 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
return -1; return -1;
}else{//vertical mode }else{//vertical mode
run = run_off - offs + (cmode - 5); run = run_off - offs + (cmode - 5);
if(cmode >= 5)
run_off += *ref++;
else
run_off -= *--ref; run_off -= *--ref;
offs += run; offs += run;
if(offs > width || run > width){ if(offs > width || run > width){
......
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