|
|
@@ -76,7 +76,9 @@ static av_cold int vmdaudio_decode_init(AVCodecContext *avctx) |
|
|
av_log(avctx, AV_LOG_ERROR, "invalid number of channels\n"); |
|
|
av_log(avctx, AV_LOG_ERROR, "invalid number of channels\n"); |
|
|
return AVERROR(EINVAL); |
|
|
return AVERROR(EINVAL); |
|
|
} |
|
|
} |
|
|
if (avctx->block_align < 1 || avctx->block_align % avctx->channels) { |
|
|
|
|
|
|
|
|
if (avctx->block_align < 1 || avctx->block_align % avctx->channels || |
|
|
|
|
|
avctx->block_align > INT_MAX - avctx->channels |
|
|
|
|
|
) { |
|
|
av_log(avctx, AV_LOG_ERROR, "invalid block align\n"); |
|
|
av_log(avctx, AV_LOG_ERROR, "invalid block align\n"); |
|
|
return AVERROR(EINVAL); |
|
|
return AVERROR(EINVAL); |
|
|
} |
|
|
} |
|
|
|