summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-03 14:30:09 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-03 14:59:40 +0200
commit234f76ae7debf2e9b057acff88125a7762f8741f (patch)
tree53f81f9b27ed7069e0d3c61b145aebb87369e5f5
parentd8c10324eda724b5a6e04477ed600dfb6804dd30 (diff)
jpeg2000: Fix unintended sign extension in malloc arguments of prec
Fixes: CID1026772/3 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/jpeg2000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/jpeg2000.c b/libavcodec/jpeg2000.c
index c98b925394..14f36c4eaf 100644
--- a/libavcodec/jpeg2000.c
+++ b/libavcodec/jpeg2000.c
@@ -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);