Mercurial > mplayer.hg
diff liba52/bitstream.c @ 3570:c03e0bb35c16
faster (and simpler) bitstream reader (in C)
author | michael |
---|---|
date | Mon, 17 Dec 2001 21:53:49 +0000 |
parents | 35b18ed357c2 |
children | 07f1e7669772 |
line wrap: on
line diff
--- a/liba52/bitstream.c Mon Dec 17 21:19:57 2001 +0000 +++ b/liba52/bitstream.c Mon Dec 17 21:53:49 2001 +0000 @@ -31,7 +31,12 @@ #define BUFFER_SIZE 4096 +#ifdef ALT_BITSTREAM_READER +int indx=0; +uint32_t * buffer_start; +#else static uint32_t * buffer_start; +#endif uint32_t bits_left; uint32_t current_word; @@ -43,6 +48,9 @@ align = (int)buf & 3; buffer_start = (uint32_t *) (buf - align); bits_left = 0; +#ifdef ALT_BITSTREAM_READER + indx=0; +#endif bitstream_get (align * 8); }