diff bitstream.h @ 2464:ab390f13c7f5 libavcodec

dont duplicate decode012()
author michael
date Tue, 25 Jan 2005 01:40:58 +0000
parents e98b5e0de86b
children 0b3697268285
line wrap: on
line diff
--- a/bitstream.h	Tue Jan 25 01:29:10 2005 +0000
+++ b/bitstream.h	Tue Jan 25 01:40:58 2005 +0000
@@ -824,4 +824,13 @@
 #define tprintf(...) {}
 #endif
 
+static int decode012(GetBitContext *gb){
+    int n;
+    n = get_bits1(gb);
+    if (n == 0)
+        return 0;
+    else
+        return get_bits1(gb) + 1;
+}
+
 #endif /* BITSTREAM_H */