based on @HeeJoon-Kim's patch, try to fix#4594
Fix audio-only HLS fMP4 streams causing players to skip segments.
The bug was in segment_close() which always used video_dts_ (0 for
audio-only) to calculate the final sample duration, causing unsigned
integer overflow and corrupted m4s files.
The fix passes max(audio_dts_, video_dts_) from the controller to
segment_close(), ensuring correct duration calculation for both
audio-only and video streams.
---------
Co-authored-by: OSSRS-AI <winlinam@gmail.com>