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>
Sat, 30 Jan 2016 23:23:46 +0000 (00:23 +0100)
commitd8b37664d524251ac524c780c0f978fb48ce4b2d
tree052b688931877c6803da20d27f1f3e8bedcf8400
parent41f97fe378e3d2b79feaa1460e85865edafe08f9
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