media/libraries/extractor/src
tonihei d1e13b629d Fix rounding error in fMP4 presentation time calculation
The presentation time in fMP4 is calculated by adding and subtracting
3 values. All 3 values are currently converted to microseconds first
before the calculation, leading to rounding errors. The rounding errors
can be avoided by doing the conversion to microseconds as the last step.

For example:
In timescale 96000:  8008+8008-16016 = 0
Rounding to us first: 83416+83416-166833=-1

#minor-release

PiperOrigin-RevId: 406809844
2021-11-09 10:07:30 +00:00
..
main Fix rounding error in fMP4 presentation time calculation 2021-11-09 10:07:30 +00:00
test Allow missing full_range_flag in colr box with type=nclx 2021-10-27 13:04:55 +01:00