diff bitstream.h @ 6099:a2b438bcb1d2 libavcodec

Make decode210() common function.
author kostya
date Thu, 03 Jan 2008 09:16:56 +0000
parents 1d83e9c34641
children 6335f2688c04
line wrap: on
line diff
--- a/bitstream.h	Thu Jan 03 02:26:29 2008 +0000
+++ b/bitstream.h	Thu Jan 03 09:16:56 2008 +0000
@@ -950,4 +950,11 @@
         return get_bits1(gb) + 1;
 }
 
+static inline int decode210(GetBitContext *gb){
+    if (get_bits1(gb))
+        return 0;
+    else
+        return 2 - get_bits1(gb);
+}
+
 #endif /* FFMPEG_BITSTREAM_H */