Commit adc5539e authored by Paul B Mahol's avatar Paul B Mahol

smacker: read escape codes in single get_bits() call

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 14fd34d7
...@@ -231,12 +231,9 @@ static int smacker_decode_header_tree(SmackVContext *smk, GetBitContext *gb, int ...@@ -231,12 +231,9 @@ static int smacker_decode_header_tree(SmackVContext *smk, GetBitContext *gb, int
av_log(smk->avctx, AV_LOG_ERROR, "Skipping high bytes tree\n"); av_log(smk->avctx, AV_LOG_ERROR, "Skipping high bytes tree\n");
} }
escapes[0] = get_bits(gb, 8); escapes[0] = get_bits(gb, 16);
escapes[0] |= get_bits(gb, 8) << 8; escapes[1] = get_bits(gb, 16);
escapes[1] = get_bits(gb, 8); escapes[2] = get_bits(gb, 16);
escapes[1] |= get_bits(gb, 8) << 8;
escapes[2] = get_bits(gb, 8);
escapes[2] |= get_bits(gb, 8) << 8;
last[0] = last[1] = last[2] = -1; last[0] = last[1] = last[2] = -1;
......
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