resampler: Fix sample_format_more_precise() for the case of comparing against PA_SAMPLE_S32BE

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
Andrey Semashev 2014-11-12 23:49:13 +03:00 committed by Peter Meerwald
parent 8a7d78b4ae
commit 807c98a37d

View file

@ -234,7 +234,7 @@ static bool sample_format_more_precise(pa_sample_format_t a, pa_sample_format_t
case PA_SAMPLE_S32LE:
case PA_SAMPLE_S32BE:
if (b == PA_SAMPLE_FLOAT32LE || b == PA_SAMPLE_FLOAT32BE ||
b == PA_SAMPLE_S32LE || b == PA_SAMPLE_FLOAT32BE)
b == PA_SAMPLE_S32LE || b == PA_SAMPLE_S32BE)
return false;
else
return true;