- int log2 = ff_log2_tab[show_bits(&gb, 8)];
- int run = get_bits(&gb, 14 - 4 * (log2 >> 1));
- int color = get_bits(&gb, 2);
+ int log2 = ff_log2_tab[bitstream_peek(&bc, 8)];
+ int run = bitstream_read(&bc, 14 - 4 * (log2 >> 1));
+ int color = bitstream_read(&bc, 2);