avcodec/asvenc: Fix integer overflow in level
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 23 Sep 2014 13:46:52 +0000 (15:46 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 23 Sep 2014 13:46:52 +0000 (15:46 +0200)
commit0bb5ad7a06ebcda9102357f8755d18b63f56aa29
treee5dcf1265d91afad742e913b616c1c65ef2e7150
parent6b2caa321fc2539c937978e040fab139d5823857
avcodec/asvenc: Fix integer overflow in level

Warn if the qscale is too low for the input data and clip levels to
minimize artifacts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/asvenc.c