Commit f8f155a1 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/jpeg2000dec: fix boolean operator

Fixes CID1271791 #7-6
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 04da0d25
......@@ -1559,7 +1559,7 @@ static int jp2_find_codestream(Jpeg2000DecoderContext *s)
int cn = bytestream2_get_be16(&s->g);
int av_unused typ = 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;
}
}
......
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