decoder/wavpack: don't call WavpackGetMode() twice

Use local variable "is_float".
This commit is contained in:
Max Kellermann 2011-10-08 15:37:47 +02:00
parent fe77230d84
commit 71536eb412

View File

@ -176,7 +176,7 @@ wavpack_decode(struct decoder *decoder, WavpackContext *wpc, bool can_seek)
return;
}
if ((WavpackGetMode(wpc) & MODE_FLOAT) == MODE_FLOAT) {
if (is_float) {
format_samples = format_samples_float;
} else {
format_samples = format_samples_int;