From 4fdd0940ed2228665d5c6d99f4c024dcfa9bc4ad Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 27 Sep 2019 21:31:04 +0200 Subject: 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.) --- 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 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; } -- cgit v1.2.3