aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bitstream.c
diff options
context:
space:
mode:
authorStefan Gehrer <stefan.gehrer@gmx.de>2008-06-26 16:39:21 +0000
committerStefan Gehrer <stefan.gehrer@gmx.de>2008-06-26 16:39:21 +0000
commitb3bf98aa56f6985e86d97a975c954370c47ca8d6 (patch)
treef62be16b8bab87eb4a5d2f05dbcf6d98601acf5c /libavcodec/bitstream.c
parentdd7a68b6dad4bfa24c4c3954066cb8e1805c1c88 (diff)
downloadffmpeg-b3bf98aa56f6985e86d97a975c954370c47ca8d6.tar.gz
move ff_log2_run to bitstream.c and reuse in ffv1.c
Originally committed as revision 13989 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bitstream.c')
-rw-r--r--libavcodec/bitstream.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c
index b69d3cb452..57f139138e 100644
--- a/libavcodec/bitstream.c
+++ b/libavcodec/bitstream.c
@@ -30,6 +30,13 @@
#include "avcodec.h"
#include "bitstream.h"
+const uint8_t ff_log2_run[32]={
+ 0, 0, 0, 0, 1, 1, 1, 1,
+ 2, 2, 2, 2, 3, 3, 3, 3,
+ 4, 4, 5, 5, 6, 6, 7, 7,
+ 8, 9,10,11,12,13,14,15
+};
+
/**
* Same as av_mallocz_static(), but does a realloc.
*