Commit b4483a53 authored by Laurent Aimar's avatar Laurent Aimar Committed by Michael Niedermayer

Check for unsupported parameters in ff_j2k_dwt_init()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 02660a87
......@@ -321,6 +321,8 @@ int ff_j2k_dwt_init(DWTContext *s, uint16_t border[2][2], int decomp_levels, int
int i, j, lev = decomp_levels, maxlen,
b[2][2];
if (decomp_levels >= FF_DWT_MAX_DECLVLS)
return AVERROR_INVALIDDATA;
s->ndeclevels = decomp_levels;
s->type = type;
......
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