diff options
author | wm4 <wm4@nowhere> | 2015-06-26 23:06:21 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-26 23:06:21 +0200 |
commit | d6737c5fab489964558b1eed934969c4f151912d (patch) | |
tree | 3c35d89e60b52b2ba4a787db20f9af527f24b94d /audio/format.h | |
parent | efb50cabe6a479fad1f440474a1eb1f47e0ce58f (diff) | |
download | mpv-d6737c5fab489964558b1eed934969c4f151912d.tar.bz2 mpv-d6737c5fab489964558b1eed934969c4f151912d.tar.xz |
audio: replace format name table
Having a big switch() is simpler.
Diffstat (limited to 'audio/format.h')
-rw-r--r-- | audio/format.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/audio/format.h b/audio/format.h index 36a005500e..83da59cf61 100644 --- a/audio/format.h +++ b/audio/format.h @@ -22,10 +22,9 @@ #ifndef MPLAYER_AF_FORMAT_H #define MPLAYER_AF_FORMAT_H +#include <stddef.h> #include <stdbool.h> -#include "misc/bstr.h" - enum af_format { AF_FORMAT_UNKNOWN = 0, @@ -60,14 +59,6 @@ enum af_format { #define AF_FORMAT_IS_FLOAT(f) af_fmt_is_float(f) #define AF_FORMAT_IS_PLANAR(f) af_fmt_is_planar(f) -struct af_fmt_entry { - const char *name; - int format; -}; - -extern const struct af_fmt_entry af_fmtstr_table[]; - -int af_str2fmt_short(bstr str); const char *af_fmt_to_str(int format); int af_fmt2bps(int format); |