summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/decode/tinyjpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/decode/tinyjpeg.c b/test/decode/tinyjpeg.c
index 33dcdc6..f53d083 100644
--- a/test/decode/tinyjpeg.c
+++ b/test/decode/tinyjpeg.c
@@ -387,7 +387,7 @@ static int parse_DRI(struct jdec_private *priv, const unsigned char *stream)
static int findEOI(struct jdec_private *priv,const unsigned char *stream)
{
- while (!(*stream == 0xff && *(stream+1) == 0xd9 )&& stream<=priv->stream_end) //searching for the end of image marker
+ while (stream<=priv->stream_end&& !(*stream == 0xff && *(stream+1) == 0xd9 )) //searching for the end of image marker
{
stream++;
continue;