diff options
author | wm4 <wm4@nowhere> | 2012-08-29 00:34:21 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-29 00:36:44 +0200 |
commit | 7c45be712f93dc965fd6c8393aa476d42cbbd64d (patch) | |
tree | 22815d9db15b2bdeae78607fbeeaff90eff97424 /libaf/af_format.c | |
parent | 7bb95cd8a5130a971d3d07eb79ba08fc91e4b7cb (diff) | |
download | mpv-7c45be712f93dc965fd6c8393aa476d42cbbd64d.tar.bz2 mpv-7c45be712f93dc965fd6c8393aa476d42cbbd64d.tar.xz |
options, libaf: unify audio format name handling
Remove the duplicated list of audio format names from m_option.c. Remove
"long" audio format names, and let af_fmt2str() print the usual short
format names. The long names were overly verbose, and were actually
rarely user visible. The only difference between af_fmt2str() and
af_fmt2str_short() is that the former prints unknown format values as
hexadecimal string as fallback.
Diffstat (limited to 'libaf/af_format.c')
-rw-r--r-- | libaf/af_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libaf/af_format.c b/libaf/af_format.c index b9f13e6dca..ea9f39e2e6 100644 --- a/libaf/af_format.c +++ b/libaf/af_format.c @@ -144,7 +144,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg) return AF_OK; } case AF_CONTROL_COMMAND_LINE:{ - int format = af_str2fmt_short(arg); + int format = af_str2fmt_short(bstr0(arg)); if (format == -1) { mp_msg(MSGT_AFILTER, MSGL_ERR, "[format] %s is not a valid format\n", (char *)arg); return AF_ERROR; |