l-smash
l-smash copied to clipboard
Handle non-compliant files
Blackmagic Design DaVinci Resolve Studio can write mp4 file with ctts version 1 but mark it as ctts version 0.
Always interpreting the sample_offset as signed is safe even if we have ctts version 0.
We need offset >= 6.6 hours (a frame, after being decoded, should wait 6.6 hours before being displayed) for getting overflow.
I am not really a fan of parsing files in non-compliant ways... it kind of goes against the ethos of L-SMASH, doesn't it?
CC: @VFR-maniac
L-SMASH never yields to and never allows non-compliant files. Use ffmpeg.
Then I guess this should be closed.