2012-02-05, 10:32
Nice patch, made into my build. I just have two movies with dts-ma so that's all I could test but one thing I noticed is that the audio packets are calculated to be of 170.67 ms duration in CDVDPlayerAudio:: DecodeFrame() because audioframe.size is 32768 (it is 2048 for dts core). The invalid duration can cause audio sync issues with drop/dupe packet sync method. I think the packet duration should be the same 10.67 ms for all (?) dts fomats because HD formats are "just" added on top of core so it seems logical that the duration is also the same (although I was unable to find any specs on this).
I use a patch to prevent mkv/dts stutter (ignoring dts timestamps) and that immediately failed. It only works correctly if I force the packet duration to be 10.67 ms for dts(-ma). I made the following small change in my build to correct this (although I am not sure if this is the right approach): https://github.com/a11599/xbmc/commit/11...6895912886
I use a patch to prevent mkv/dts stutter (ignoring dts timestamps) and that immediately failed. It only works correctly if I force the packet duration to be 10.67 ms for dts(-ma). I made the following small change in my build to correct this (although I am not sure if this is the right approach): https://github.com/a11599/xbmc/commit/11...6895912886