Unified · Split
| @@ -228,7 +228,7 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb, · 227 unmodified lines | ||
| 228 | 228 | mode = !mode; |
| 229 | 229 | } |
| 230 | 230 | //sync line pointers |
| 231 | − while(run_off <= offs){ | |
| 231 | + while(offs < width && run_off <= offs){ | |
| 232 | 232 | run_off += *ref++; |
| 233 | 233 | run_off += *ref++; |
| 234 | 234 | } |