decoder/wavpack: make is_float const
This commit is contained in:
parent
98a241a730
commit
e8c374113e
@ -144,7 +144,7 @@ wavpack_bits_to_sample_format(bool is_float, int bytes_per_sample)
|
|||||||
static void
|
static void
|
||||||
wavpack_decode(DecoderClient &client, WavpackContext *wpc, bool can_seek)
|
wavpack_decode(DecoderClient &client, WavpackContext *wpc, bool can_seek)
|
||||||
{
|
{
|
||||||
bool is_float = (WavpackGetMode(wpc) & MODE_FLOAT) != 0;
|
const bool is_float = (WavpackGetMode(wpc) & MODE_FLOAT) != 0;
|
||||||
SampleFormat sample_format =
|
SampleFormat sample_format =
|
||||||
wavpack_bits_to_sample_format(is_float,
|
wavpack_bits_to_sample_format(is_float,
|
||||||
WavpackGetBytesPerSample(wpc));
|
WavpackGetBytesPerSample(wpc));
|
||||||
|
Loading…
Reference in New Issue
Block a user