Commit 72eba655 authored by Diego Biurrun's avatar Diego Biurrun

wmavoice: Simplify GetBitContext initialization

parent 80fc75d5
......@@ -1672,9 +1672,7 @@ static int check_bits_for_superframe(GetBitContext *orig_gb,
const struct frame_type_desc *frame_desc;
/* initialize a copy */
init_get_bits(gb, orig_gb->buffer, orig_gb->size_in_bits);
skip_bits_long(gb, get_bits_count(orig_gb));
assert(get_bits_left(gb) == get_bits_left(orig_gb));
*gb = *orig_gb;
/* superframe header */
if (get_bits_left(gb) < 14)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment