Mercurial > audlegacy-plugins
diff src/aac/libfaad2/rvlc.c @ 3006:169f6ee38cad
Defining C functions in headers is awkward, move to the one C file that actually uses it.
author | Tony Vroon <chainsaw@gentoo.org> |
---|---|
date | Wed, 08 Apr 2009 22:30:45 +0100 |
parents | 8867d3491f60 |
children |
line wrap: on
line diff
--- a/src/aac/libfaad2/rvlc.c Wed Apr 08 22:16:01 2009 +0100 +++ b/src/aac/libfaad2/rvlc.c Wed Apr 08 22:30:45 2009 +0100 @@ -70,6 +70,24 @@ int8_t direction); static int8_t rvlc_huffman_esc(bitfile *ld_esc, int8_t direction); +static /*INLINE*/ uint32_t faad_getbits_rev(bitfile *ld, uint32_t n + DEBUGDEC) +{ + uint32_t ret; + + if (n == 0) + return 0; + + ret = faad_showbits_rev(ld, n); + faad_flushbits_rev(ld, n); + +#ifdef ANALYSIS + if (print) + fprintf(stdout, "%4d %2d bits, val: %4d, variable: %d %s\n", dbg_count++, n, ret, var, dbg); +#endif + + return ret; +} uint8_t rvlc_scale_factor_data(ic_stream *ics, bitfile *ld) {