mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +00:00
Make the compiler happy (and count == 0 an error).
This commit is contained in:
parent
e14bcb1b24
commit
10557b0205
@ -342,7 +342,7 @@ static int
|
|||||||
bitcopy(bit_reader_t &r,
|
bitcopy(bit_reader_t &r,
|
||||||
bit_writer_t &w,
|
bit_writer_t &w,
|
||||||
int count) {
|
int count) {
|
||||||
int bit, v = 0;
|
int bit = -1, v = 0;
|
||||||
|
|
||||||
while (count-- && (bit = r.bit()) >= 0)
|
while (count-- && (bit = r.bit()) >= 0)
|
||||||
w.bit(bit), v = (v << 1) | bit;
|
w.bit(bit), v = (v << 1) | bit;
|
||||||
|
Loading…
Reference in New Issue
Block a user