Commit 82b5d21d authored by Christophe Massiot's avatar Christophe Massiot
Browse files

Merge branch 'quarium-a52'

parents 7e10c13a f82eb172
......@@ -81,9 +81,9 @@ static inline uint8_t desc81_bit_rate_code_from_octetrate(uint64_t octetrate)
640,
};
for (unsigned i = 0; i < 19; i++) {
if (octetrate * 8 == table[i])
if (octetrate * 8 == table[i] * 1000)
return i;
else if (octetrate * 8 < table[i])
else if (octetrate * 8 < table[i] * 1000)
return 0x20 | i;
}
return 0xff;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment