Commit d735f457 authored by Arnaud de Turckheim's avatar Arnaud de Turckheim
Browse files

Fix ATSC desc81_bit_rate_code_from_octetrate

parent e05f1899
......@@ -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