mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
avcodec/jpeg2000dec: fix boolean operator
Fixes CID1271791 #7-6 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
04da0d2586
commit
f8f155a18a
@ -1559,7 +1559,7 @@ static int jp2_find_codestream(Jpeg2000DecoderContext *s)
|
|||||||
int cn = bytestream2_get_be16(&s->g);
|
int cn = bytestream2_get_be16(&s->g);
|
||||||
int av_unused typ = bytestream2_get_be16(&s->g);
|
int av_unused typ = bytestream2_get_be16(&s->g);
|
||||||
int asoc = bytestream2_get_be16(&s->g);
|
int asoc = bytestream2_get_be16(&s->g);
|
||||||
if (cn < 4 || asoc < 4)
|
if (cn < 4 && asoc < 4)
|
||||||
s->cdef[cn] = asoc;
|
s->cdef[cn] = asoc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user