-
Since matroska_segment_c::EnsureDuration calculates the duration by using the timecode of the last block in the last cluster, and subtracting that with the timecode of the first cluster found, the previous implementation would crash if there was no clusters in the file. These changes fixes that, and should be viewed as a fixup of f2756634 . fixes #17567 Signed-off-by: Steve Lhomme <robux4@videolabs.io> Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8ad7d9ce