- bitstream_read(&bc, 2); // frame marker
- profile = bitstream_read(&bc, 1);
- profile |= bitstream_read(&bc, 1) << 1;
- if (profile == 3)
- profile += bitstream_read(&bc, 1);
+ get_bits(&gb, 2); // frame marker
+ profile = get_bits1(&gb);
+ profile |= get_bits1(&gb) << 1;
+ if (profile == 3) profile += get_bits1(&gb);