mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-29 02:03:03 +08:00
f89ad4bee5
I discovered while testing that the first split would always be one GOP too long (e.g. 1m2s instead of 1m) due to the fact that b-frames and negative start DTSes were not accounted for. This is now fixed by setting the start_time to the nonzero negative DTS produced for the first packet. Additionally, a small tolerance of 1 ms was also added to account for rounding issues present in the first GOP.