]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/bitstream.h
Make the Kaiser-Bessel window generator a common function
[ffmpeg] / libavcodec / bitstream.h
index 9b388532205ece87cdda9e8ac31ffe6eb6c17a6c..854ba99bcc6d3de324316471e41ddbfdcaf42f36 100644 (file)
@@ -23,8 +23,8 @@
  * bitstream api header.
  */
 
-#ifndef BITSTREAM_H
-#define BITSTREAM_H
+#ifndef FFMPEG_BITSTREAM_H
+#define FFMPEG_BITSTREAM_H
 
 #include <stdint.h>
 #include <stdlib.h>
@@ -950,4 +950,11 @@ static inline int decode012(GetBitContext *gb){
         return get_bits1(gb) + 1;
 }
 
-#endif /* BITSTREAM_H */
+static inline int decode210(GetBitContext *gb){
+    if (get_bits1(gb))
+        return 0;
+    else
+        return 2 - get_bits1(gb);
+}
+
+#endif /* FFMPEG_BITSTREAM_H */