From 9ba0dd9aeac31b2d5c7edfdd65cac37ea57c7227 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 5 May 2022 11:18:46 -0400 Subject: [PATCH] TT#14008 fix TLS-send-only w/o recording scenario Provide a standard output format if no other outputs are configured, so that the decoder has something to work with. Applicable to TLS-send-only scenarios without recording. Change-Id: I627bb7af3f3033e1025009c21a4da6991e491dcf --- recording-daemon/decoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recording-daemon/decoder.c b/recording-daemon/decoder.c index 3c04c0e38..be57ebcc7 100644 --- a/recording-daemon/decoder.c +++ b/recording-daemon/decoder.c @@ -80,6 +80,8 @@ decode_t *decoder_new(const char *payload_str, const char *format, int ptime, ou out_format = outp->requested_format; output_config(outp, &out_format, &out_format); } + else + out_format.format = AV_SAMPLE_FMT_S16; // needed for TLS-only scenarios str fmtp; str_init(&fmtp, (char *) format);