From dc04541ba8cf52aab24c8e55d0e640d79ba6605e Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 10 Sep 2015 23:25:27 +0200 Subject: audio/format: actually prefer float over double sample format ...for int->float conversions. This code accidentally inverted the condition. --- audio/format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio') diff --git a/audio/format.c b/audio/format.c index 36cfb9be03..2817462f8e 100644 --- a/audio/format.c +++ b/audio/format.c @@ -193,7 +193,7 @@ int af_format_conversion_score(int dst_format, int src_format) int dst_bytes = af_fmt_to_bytes(dst_format); if (af_fmt_is_float(dst_format)) { // For int->float, always prefer 32 bit float. - score -= dst_bytes == 4 ? 1 : 0; + score -= dst_bytes == 4 ? 0 : 1; } else { // For float->int, always prefer highest bit depth int score -= 8 - dst_bytes; -- cgit v1.2.3