From 60bd4a681e425b15ebd46eedfe2c3a1e2fbcf7a7 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 14 Nov 2018 10:24:20 -0500 Subject: [PATCH] clarify output of --codecs for codecs lacking RTP support fixes #655 Change-Id: Ie51453487763809ff872fb4524cdfd27a56ff5e4 --- lib/codeclib.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/codeclib.c b/lib/codeclib.c index 4e28713ae..66aadf627 100644 --- a/lib/codeclib.c +++ b/lib/codeclib.c @@ -740,8 +740,12 @@ void codeclib_init(int print) { continue; if (print) { - if (def->support_encoding && def->support_decoding) - printf("%20s: fully supported\n", def->rtpname); + if (def->support_encoding && def->support_decoding) { + if (def->default_channels > 0 && def->default_clockrate >= 0) + printf("%20s: fully supported\n", def->rtpname); + else + printf("%20s: codec supported but lacks RTP definition\n", def->rtpname); + } else if (def->support_decoding) printf("%20s: supported for decoding only\n", def->rtpname); else if (def->support_encoding)