Skip to content
Snippets Groups Projects
Commit f9fa5605 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/aacenc: check input for NaN


Fixes Ticket3762

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 41ad87ad
No related branches found
No related tags found
No related merge requests found
......@@ -567,6 +567,10 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
ics->group_len[w] = wi[ch].grouping[w];
apply_window_and_mdct(s, &cpe->ch[ch], overlap);
if (isnan(cpe->ch->coeffs[0])) {
av_log(avctx, AV_LOG_ERROR, "Input contains NaN\n");
return AVERROR(EINVAL);
}
}
start_ch += chans;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment