Browse Source

MT#62571 support sending multi channel audio

Change-Id: I8e79b7b873308f9ed2bedbe18a4f61a6e7c3ae93
pull/1967/head
Richard Fuchs 5 months ago
parent
commit
7dfe1e30f5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      recording-daemon/tls_send.c

+ 1
- 1
recording-daemon/tls_send.c View File

@ -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);


Loading…
Cancel
Save