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: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit c94d551ea7b39c4e467e146cd347c407e8eb38ee) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0c188bc595
commit
c30d0ace65
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user