summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-10 23:25:27 +0200
committerwm4 <wm4@nowhere>2015-09-10 23:25:27 +0200
commitdc04541ba8cf52aab24c8e55d0e640d79ba6605e (patch)
treeb3343a0d53d18fc4860692e9648672938ce72596 /audio
parent9e04e319061495356277f647c1ce154e6b6cb6a4 (diff)
downloadmpv-dc04541ba8cf52aab24c8e55d0e640d79ba6605e.tar.bz2
mpv-dc04541ba8cf52aab24c8e55d0e640d79ba6605e.tar.xz
audio/format: actually prefer float over double sample format
...for int->float conversions. This code accidentally inverted the condition.
Diffstat (limited to 'audio')
-rw-r--r--audio/format.c2
1 files changed, 1 insertions, 1 deletions
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;