decoder/wavpack: don't call WavpackGetMode() twice
Use local variable "is_float".
This commit is contained in:
parent
fe77230d84
commit
71536eb412
@ -176,7 +176,7 @@ wavpack_decode(struct decoder *decoder, WavpackContext *wpc, bool can_seek)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((WavpackGetMode(wpc) & MODE_FLOAT) == MODE_FLOAT) {
|
if (is_float) {
|
||||||
format_samples = format_samples_float;
|
format_samples = format_samples_float;
|
||||||
} else {
|
} else {
|
||||||
format_samples = format_samples_int;
|
format_samples = format_samples_int;
|
||||||
|
Loading…
Reference in New Issue
Block a user