diff --git a/main/translate.c b/main/translate.c
index 017f8b19bee1a7aa6fec7761c48830050e2ac7e2..6c27e4e241a3943ccbde1e12b2204e9c0e5c1ebb 100644
--- a/main/translate.c
+++ b/main/translate.c
@@ -557,9 +557,14 @@ static char *handle_cli_core_show_translation(struct ast_cli_entry *e, int cmd,
 	}
 	for (x = -1; x < SHOW_TRANS; x++) {
 		struct ast_str *out = ast_str_alloca(120);
-		
+		/*Go ahead and move to next iteration if dealing with an unknown codec*/
+		if(x >= 0 && !strcmp(ast_getformatname(1 << (x)), "unknown"))
+			continue;
 		ast_str_set(&out, -1, " ");
 		for (y = -1; y < SHOW_TRANS; y++) {
+			/*Go ahead and move to next iteration if dealing with an unknown codec*/
+			if (y >= 0 && !strcmp(ast_getformatname(1 << (y)), "unknown"))
+				continue;
 			if (y >= 0)
 				curlen = strlen(ast_getformatname(1 << (y)));
 			if (curlen < 5)