|
|
@@ -95,6 +95,8 @@ static av_cold int decode_init(AVCodecContext *avctx) |
|
|
if (avctx->codec->id == AV_CODEC_ID_BINKAUDIO_RDFT) { |
|
|
if (avctx->codec->id == AV_CODEC_ID_BINKAUDIO_RDFT) { |
|
|
// audio is already interleaved for the RDFT format variant |
|
|
// audio is already interleaved for the RDFT format variant |
|
|
avctx->sample_fmt = AV_SAMPLE_FMT_FLT; |
|
|
avctx->sample_fmt = AV_SAMPLE_FMT_FLT; |
|
|
|
|
|
if (sample_rate > INT_MAX / avctx->channels) |
|
|
|
|
|
return AVERROR_INVALIDDATA; |
|
|
sample_rate *= avctx->channels; |
|
|
sample_rate *= avctx->channels; |
|
|
s->channels = 1; |
|
|
s->channels = 1; |
|
|
if (!s->version_b) |
|
|
if (!s->version_b) |
|
|
|