Browse Source

jpeg2000: Fix unintended sign extension in malloc arguments of prec

Fixes: CID1026772/3
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
234f76ae7d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/jpeg2000.c

+ 1
- 1
libavcodec/jpeg2000.c View File

@@ -364,7 +364,7 @@ int ff_jpeg2000_init_component(Jpeg2000Component *comp,
band->coord[1][j] = ff_jpeg2000_ceildiv(band->coord[1][j], dy);

band->prec = av_malloc_array(reslevel->num_precincts_x *
reslevel->num_precincts_y,
(uint64_t)reslevel->num_precincts_y,
sizeof(*band->prec));
if (!band->prec)
return AVERROR(ENOMEM);


Loading…
Cancel
Save