avcodec/aacenc: Tighter input checks
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 23 Aug 2016 09:00:29 +0000 (11:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 23 Aug 2016 09:03:00 +0000 (11:03 +0200)
commit77bf96b04710b98a52aaddb93bfd32da0d506191
tree6597dccdf119fc5f4f5607c2cd003e4f250a8fd4
parent76d377d0a0a85f79dbe461971014e13b56937c86
avcodec/aacenc: Tighter input checks

Fixes occurance of NaN/Inf leading to assertion failures and out of array access
Fixes: d1c38a09acc34845c6be3a127a5aacaf/signal_sigsegv_3982225_6121_d18bd5451d4245ee09408f04badd1b83.wmv

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacenc.c