mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +00:00
get_bit_position returned a mix of byte position and bit position.
This commit is contained in:
parent
086d8727a3
commit
8e9f3f98fc
@ -217,7 +217,7 @@ public:
|
||||
}
|
||||
|
||||
int get_bit_position() {
|
||||
return byte_position - start_of_data + 8 - bits_valid;
|
||||
return (byte_position - start_of_data) * 8 + 8 - bits_valid;
|
||||
}
|
||||
|
||||
bool skip_bits(unsigned int num) {
|
||||
|
Loading…
Reference in New Issue
Block a user