From 7aabd7dddd0ef9d6ee3627a854b1999aa7d481f5 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 31 Mar 2021 09:22:12 -0400 Subject: [PATCH] TT#14008 fix G.729 recording with bcg729 closes #1223 Change-Id: I0a936a6d9fae77e74a9cec4f2ad2e05923da8f69 --- recording-daemon/decoder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recording-daemon/decoder.c b/recording-daemon/decoder.c index 9fb4676a6..1296a379a 100644 --- a/recording-daemon/decoder.c +++ b/recording-daemon/decoder.c @@ -53,8 +53,11 @@ decode_t *decoder_new(const char *payload_str, const char *format, int ptime, ou ilog(LOG_WARN, "No decoder for payload %s", payload_str); return NULL; } - if (def->avcodec_id == -1) // not a real audio codec + if (def->supplemental || !def->support_decoding || def->media_type != MT_AUDIO) { + // not a real audio codec + ilog(LOG_DEBUG, "Not decoding codec %s", payload_str); return NULL; + } // decoder_new_fmt already handles the clockrate_mult scaling int rtp_clockrate = clockrate;