mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
escape124: explicitly set get_bits1 variable
Makes coverity less confused. CC: libav-stable@libav.org Bug-Id: CID 1203487
This commit is contained in:
parent
2ffb0598db
commit
1a9c1333b5
1 changed files with 4 additions and 3 deletions
|
|
@ -147,10 +147,11 @@ static MacroBlock decode_macroblock(Escape124Context* s, GetBitContext* gb,
|
|||
// This function reads a maximum of 22 bits; the callers
|
||||
// guard this function appropriately
|
||||
unsigned block_index, depth;
|
||||
|
||||
if (get_bits1(gb)) {
|
||||
int value = get_bits1(gb);
|
||||
if (value) {
|
||||
static const char transitions[3][2] = { {2, 1}, {0, 2}, {1, 0} };
|
||||
*codebook_index = transitions[*codebook_index][get_bits1(gb)];
|
||||
value = get_bits1(gb);
|
||||
*codebook_index = transitions[*codebook_index][value];
|
||||
}
|
||||
|
||||
depth = s->codebooks[*codebook_index].depth;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue