]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/faxcompr.c
Merge commit 'fb722a900fc5cc9e003b9fef25b27ed7fc5547a2'
[ffmpeg] / libavcodec / faxcompr.c
index 5aa7885679809f354f75813f5218ed5406e2a8b1..e7f9d00a115ccd2e133008845003bc2be291b570 100644 (file)
@@ -228,7 +228,7 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
             mode = !mode;
         }
         //sync line pointers
-        while(run_off <= offs){
+        while(offs < width && run_off <= offs){
             run_off += *ref++;
             run_off += *ref++;
         }