avcodec/flacenc: fix calculation of bits required in case of custom sample rate
authorPaul B Mahol <onemda@gmail.com>
Sun, 24 Jan 2016 19:47:49 +0000 (20:47 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 1 Feb 2016 01:12:22 +0000 (02:12 +0100)
commitac8a265be81a58698c9f4641807ab8b6eb721b93
treecc00508c7b20e0f71f1c42c5200f8b4c04808be3
parent106e0fff2e885db845f8d47d53e2f5c1152c1dab
avcodec/flacenc: fix calculation of bits required in case of custom sample rate

Sample rate of 11025 takes 16 bits but previous code would pick only 8.
Fixes assertion failure.

Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
(cherry picked from commit 3e7d6849120d61bb354376d52786c26f20e20835)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/flacenc.c