diff options
author | wm4 <wm4@nowhere> | 2018-03-07 23:01:52 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-03-08 17:12:32 -0800 |
commit | 2f20168b0b5105566ecb330ea4b83c358e4b4e6d (patch) | |
tree | a31be92cd4bcbf18808dd07e9b9fe9a3aab8592b /test/test_helpers.h | |
parent | f40e0cb0f21f0f322cdb74eb7582f63986d7dab5 (diff) | |
download | mpv-2f20168b0b5105566ecb330ea4b83c358e4b4e6d.tar.bz2 mpv-2f20168b0b5105566ecb330ea4b83c358e4b4e6d.tar.xz |
ao_sdl: fix default buffer size
If you set desired.samples to 0, SDL will return a default buffer size
on obtained.samples. This was broken, because ceil_power_of_two(0)
returns 1. Since 0 is usually not considered a power of two, this is
probably correct, but we still want to set desired.samples to 0 in this
case.
Diffstat (limited to 'test/test_helpers.h')
0 files changed, 0 insertions, 0 deletions