From 7dfe1e30f5ef744d01c0ca944808dfff373c1b78 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 2 Jul 2025 11:45:43 -0400 Subject: [PATCH] MT#62571 support sending multi channel audio Change-Id: I8e79b7b873308f9ed2bedbe18a4f61a6e7c3ae93 --- recording-daemon/tls_send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recording-daemon/tls_send.c b/recording-daemon/tls_send.c index d7db795e8..c0cb4564f 100644 --- a/recording-daemon/tls_send.c +++ b/recording-daemon/tls_send.c @@ -227,7 +227,7 @@ static bool tls_fwd_add(sink_t *sink, AVFrame *frame) { if (next_pts > tls_fwd->in_pts) tls_fwd->in_pts = next_pts; - int linesize = av_get_bytes_per_sample(frame->format) * frame->nb_samples; + int linesize = av_get_bytes_per_sample(frame->format) * frame->nb_samples * GET_CHANNELS(frame); dbg("Writing %u bytes PCM to TLS", linesize); streambuf_write(tls_fwd->stream, (char *) frame->extended_data[0], linesize);