Commit c94d551e authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/pixlet: Reorder rlen check

This changes nothing but is nicer looking as this checks rlen

Maybe this helps coverity remove CID1397743
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 8dd0c126
......@@ -173,7 +173,7 @@ static int read_low_coeffs(AVCodecContext *avctx, int16_t *dst, int size, int wi
}
}
if (i + rlen > size)
if (rlen > size - i)
return AVERROR_INVALIDDATA;
i += rlen;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment