Replace computations of remaining bits with calls to get_bits_left().

This commit is contained in:
Alex Converse
2012-03-04 17:53:50 -08:00
parent b70feb4053
commit 3574a85ce5
10 changed files with 18 additions and 19 deletions

View File

@@ -49,7 +49,7 @@ typedef struct Escape124Context {
} Escape124Context;
static int can_safely_read(GetBitContext* gb, int bits) {
return get_bits_count(gb) + bits <= gb->size_in_bits;
return get_bits_left(gb) >= bits;
}
/**