Dolby TrueHD passthrough - modified mpv build

2 more logs attached:

Build (mpv-dev-x86_64-v3-20230114-git-6cdce9e-old-truehd-spdifenc+commits.zip)
Film: Star Trek 2009, 4K HDR. (seems to have audio issues consistently in the first few minutes)

In both logs this is a fresh open of plex htpc, select film, play from begging and wait. Next input was to exit the film.

Log1:
Started playing: 23:07:19
Glitch 1: 23:08:28
Glitch 2: 23:09:16
Stopped: 23:09:29

Log2:
Started playing: 23:16:01
Glitch 1: 23:18:02
Glitch 2: 23:18:24
Glitch 3: 23:21:26
Stopped: 23:21:37

The only thing i can see in the logs at any of the glitch times is one instance of:
Feb 23, 2023 23:08:28.025 [5264] WARN - [MPVEngine/mpv] ao/wasapi: Under-run: Device delay: -14.4 us

I have been testing further this afternoon and have found that the audio issues I get consistently with Star Trek at the start of the film go away if I turn hardware acceleration off.

I have tested this multiple times now on and off, and with it off i can play 10 minutes of the film with no issue and with it on I get issues in the first couple of minutes.

It is still only a few films I am getting any issues with at all with the build above.

FF and RW is slower with hardware acceleration off.

I may watch Start Trek tomorrow fully and see if HW Acceleration off works for the whole film.