Bug 1314316 - Restore use of ceilf method instead of roundf. r=jesup

MozReview-Commit-ID: 5Wv5dqSy3B8

--HG--
extra : rebase_source : 23e09c1e37fc70626d8ef4178b7342117ddfc92f
This commit is contained in:
Alex Chronopoulos 2016-11-01 18:34:55 +02:00
Родитель 5ad7b0c24d
Коммит 0dc4f7ef3b
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -5,4 +5,4 @@ Makefile.in build files for the Mozilla build system.
The cubeb git repository is: git://github.com/kinetiknz/cubeb.git
The git commit ID used was 9eacd3144b62ce2356c66c3260c9bc4151274192.
The git commit ID used was 352c0bed012a770ef65aee1e507704922ea80b0e.

Просмотреть файл

@ -263,8 +263,8 @@ public:
* number of output frames will be exactly equal. */
uint32_t input_needed_for_output(uint32_t output_frame_count)
{
return (uint32_t)roundf((output_frame_count - samples_to_frames(resampling_out_buffer.length()))
* resampling_ratio);
return (uint32_t)ceilf((output_frame_count - samples_to_frames(resampling_out_buffer.length()))
* resampling_ratio);
}