Browse Source

Check for unsupported parameters in ff_j2k_dwt_init()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit b4483a531a)
tags/n0.8.5
Laurent Aimar Michael Niedermayer 14 years ago
parent
commit
d414c77ded
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/j2k_dwt.c

+ 2
- 0
libavcodec/j2k_dwt.c View File

@@ -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;



Loading…
Cancel
Save