From 91626b1c0606afb9bb582070e8a444a3ba8395ab Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 7 Nov 2013 22:12:36 +0100 Subject: audio: replace af_fmt2str_short -> af_fmt_to_str Also, remove all af_fmt2str usages. --- audio/format.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'audio/format.c') diff --git a/audio/format.c b/audio/format.c index 9b0967ae53..01c9a431a1 100644 --- a/audio/format.c +++ b/audio/format.c @@ -62,15 +62,6 @@ int af_fmt_change_bits(int format, int bits) return af_fmt_is_valid(format) ? format : 0; } -/* Convert format to str input str is a buffer for the - converted string, size is the size of the buffer */ -char *af_fmt2str(int format, char* str, int size) -{ - const char *name = af_fmt2str_short(format); - snprintf(str, size, "%s", name); - return str; -} - const struct af_fmt_entry af_fmtstr_table[] = { { "mpeg2", AF_FORMAT_MPEG2 }, { "ac3le", AF_FORMAT_AC3_LE }, @@ -119,7 +110,7 @@ bool af_fmt_is_valid(int format) return false; } -const char *af_fmt2str_short(int format) +const char *af_fmt_to_str(int format) { for (int i = 0; af_fmtstr_table[i].name; i++) { if (af_fmtstr_table[i].format == format) -- cgit v1.2.3