parsers: bitstream - wrong shift operator argument (coverity)
This commit is contained in:
parent
8871709170
commit
7f732d1b8a
1 changed files with 2 additions and 0 deletions
|
@ -86,6 +86,8 @@ read_golomb_ue(bitstream_t *bs)
|
|||
for(b = 0; !b && !bs_eof(bs); lzb++)
|
||||
b = read_bits1(bs);
|
||||
|
||||
if (lzb < 0)
|
||||
return 0;
|
||||
return (1 << lzb) - 1 + read_bits(bs, lzb);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue