Daniel-Glucksman / JBig2Decoder.NET

A .Net Implementation of the JPedal JBig2 Decoder
MIT License
10 stars 4 forks source link

Update JBig2Image.cs #8

Open BradSmith1985 opened 3 years ago

BradSmith1985 commented 3 years ago

I encountered an image file where the top row had the predictor flag set. This caused an IndexOutOfRangeException in FastBitSet because it was trying to read row -1. I discovered that this indicates that the bottom row should be used as the predictor. Making this change allowed me to decode the image successfully.