|
@@ -2137,7 +2137,7 @@ static int dirac_decode_data_unit(AVCodecContext *avctx, const uint8_t *buf, int |
|
|
return ret; |
|
|
return ret; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (CALC_PADDING((int64_t)dsh->width, MAX_DWT_LEVELS) * CALC_PADDING((int64_t)dsh->height, MAX_DWT_LEVELS) > avctx->max_pixels) |
|
|
|
|
|
|
|
|
if (CALC_PADDING((int64_t)dsh->width, MAX_DWT_LEVELS) * CALC_PADDING((int64_t)dsh->height, MAX_DWT_LEVELS) * 5LL > avctx->max_pixels) |
|
|
ret = AVERROR(ERANGE); |
|
|
ret = AVERROR(ERANGE); |
|
|
if (ret >= 0) |
|
|
if (ret >= 0) |
|
|
ret = ff_set_dimensions(avctx, dsh->width, dsh->height); |
|
|
ret = ff_set_dimensions(avctx, dsh->width, dsh->height); |
|
|