summaryrefslogtreecommitdiffstats
path: root/audio/format.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-07 22:12:36 +0100
committerwm4 <wm4@nowhere>2013-11-07 22:12:36 +0100
commit91626b1c0606afb9bb582070e8a444a3ba8395ab (patch)
treeae7245c12aae01734bde1c68ab7f2cc26aeb5845 /audio/format.c
parentaa48eeac9707f7e54468b55226af1188e7d72e30 (diff)
downloadmpv-91626b1c0606afb9bb582070e8a444a3ba8395ab.tar.bz2
mpv-91626b1c0606afb9bb582070e8a444a3ba8395ab.tar.xz
audio: replace af_fmt2str_short -> af_fmt_to_str
Also, remove all af_fmt2str usages.
Diffstat (limited to 'audio/format.c')
-rw-r--r--audio/format.c11
1 files changed, 1 insertions, 10 deletions
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)