summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-09-27 21:31:04 +0200
committerwm4 <wm4@nowhere>2019-09-27 21:31:04 +0200
commit4fdd0940ed2228665d5c6d99f4c024dcfa9bc4ad (patch)
treeec1e83d9b2e5da46f33fdd7d19de26e29abefc51
parent81c872efc0ecc2228f01b9dc55cb152a30b277f9 (diff)
downloadmpv-4fdd0940ed2228665d5c6d99f4c024dcfa9bc4ad.tar.bz2
mpv-4fdd0940ed2228665d5c6d99f4c024dcfa9bc4ad.tar.xz
audio: fix copy&paste error
This wasn't used at all in my tests, because it simply passed the frame directly to libswsresample. (And, by the way, will always do that, because s64 is so obscure literally NOTHING uses it except a sample specifically created to test this code. Screw FFmpeg.)
-rw-r--r--audio/format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/format.c b/audio/format.c
index 30bc5ee446..895972bc4d 100644
--- a/audio/format.c
+++ b/audio/format.c
@@ -29,7 +29,7 @@ int af_fmt_to_bytes(int format)
case AF_FORMAT_U8: return 1;
case AF_FORMAT_S16: return 2;
case AF_FORMAT_S32: return 4;
- case AF_FORMAT_S64: return 4;
+ case AF_FORMAT_S64: return 8;
case AF_FORMAT_FLOAT: return 4;
case AF_FORMAT_DOUBLE: return 8;
}