Files
Velix-MPV-Core/player
Stefan Pöschel 3ee6d7db4e command: fix bitrate rounding error
When the (float) bitrate is returned, it is implicitely converted to an
int64 value, merely discarding the fractional part.

However the bitrate of a CBR track can vary a bit due to timestamp
precision loss after clock conversion (this can affect MPEG-TS audio
tracks). So a bitrate like 191999.999... results in 191999 when
being returned - instead of 192000.

To fix this, apply proper rounding, as already done for the "old" case.
Hereby refactoring the "old" case to also use `llrint`.
2019-09-26 11:53:42 +02:00
..
2019-09-21 14:24:42 +02:00
2019-09-20 13:54:17 +02:00
2019-09-26 11:53:42 +02:00
2018-05-24 19:56:34 +02:00
2019-09-19 20:37:05 +02:00