]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/faxcompr.c
fix compilation with GCC-4.3+
[ffmpeg] / libavcodec / faxcompr.c
index 424de599b540d23bd2840080e9b5d36936cc4b1b..e7f7706b94b9ef81db7a4c7490d90b9c85163989 100644 (file)
@@ -212,10 +212,7 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
             return -1;
         }else{//vertical mode
             run = run_off - offs + (cmode - 5);
-            if(cmode >= 5)
-                run_off += *ref++;
-            else
-                run_off -= *--ref;
+            run_off -= *--ref;
             offs += run;
             if(offs > width || run > width){
                 av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n");