aacsbr: check sample_rate before using it, fix division by 0
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 20 Nov 2012 02:20:43 +0000 (03:20 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 20 Nov 2012 03:04:30 +0000 (04:04 +0100)
commitcf5f4c5169639349262aa221ae485a0de188afb1
treefa43f18ee2e0774b6795fb13a12659a51456d227
parentaed128f07d142a7afc51f1f0c572a31b3b9bc2a6
aacsbr: check sample_rate before using it, fix division by 0

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/aacsbr.c