From d6737c5fab489964558b1eed934969c4f151912d Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 26 Jun 2015 23:06:21 +0200 Subject: audio: replace format name table Having a big switch() is simpler. --- audio/format.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'audio/format.h') 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 #include -#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); -- cgit v1.2.3