We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 954bad9 commit f05bcdbCopy full SHA for f05bcdb
decode/tinyjpeg.c
@@ -823,7 +823,7 @@ int tinyjpeg_decode(struct jdec_private *priv)
823
vaDestroyConfig(va_dpy, config_id);
824
vaDestroyContext(va_dpy, context_id);
825
826
- if (scan_num > JPEG_SCAN_MAX)
+ if (scan_num >= JPEG_SCAN_MAX)
827
break;
828
parse_JFIF(priv, priv->stream);
829
if (priv->width[scan_num] == 0 && priv->height[scan_num] == 0)
0 commit comments