diff unary.h @ 5607:5b80d560cdca libavcodec

add get_unary_0_33() to help gcc with inlining
author aurel
date Sun, 26 Aug 2007 22:38:57 +0000
parents 0bc48f6f78a2
children cf88751d8ab7
line wrap: on
line diff
--- a/unary.h	Sun Aug 26 22:34:49 2007 +0000
+++ b/unary.h	Sun Aug 26 22:38:57 2007 +0000
@@ -38,4 +38,14 @@
     return i;
 }
 
+/**
+ * Get unary code terminated by a 0 with a maximum length of 33
+ * @param gb GetBitContext
+ * @return Unary length/index
+ */
+static inline int get_unary_0_33(GetBitContext *gb)
+{
+    return get_unary(gb, 0, 33);
+}
+
 #endif /* AVCODEC_UNARY_H */