diff libaf/af_format.h @ 30234:9d09ff127c25

Add and use AF_FORMAT_IS_AC3 macro.
author reimar
date Mon, 11 Jan 2010 19:23:18 +0000
parents 0acca3a641a6
children 02b9c1a452e1
line wrap: on
line diff
--- a/libaf/af_format.h	Mon Jan 11 19:08:15 2010 +0000
+++ b/libaf/af_format.h	Mon Jan 11 19:23:18 2010 +0000
@@ -103,6 +103,8 @@
 
 #define AF_FORMAT_UNKNOWN (-1)
 
+#define AF_FORMAT_IS_AC3(fmt) (((fmt) & AF_FORMAT_SPECIAL_MASK) == AF_FORMAT_AC3)
+
 int af_str2fmt(const char *str);
 int af_str2fmt_short(const char *str);
 int af_fmt2bits(int format);