mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
smacker: read escape codes in single get_bits() call
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
14fd34d73b
commit
adc5539e7b
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user