demux/mkv: do not calculate duration for infinite clusters
authorFilip Roséen <filip@atch.se>
Sat, 22 Oct 2016 02:54:11 +0000 (04:54 +0200)
committerThomas Guillem <thomas@gllm.fr>
Wed, 26 Oct 2016 14:30:02 +0000 (16:30 +0200)
commitf2756634ed3601fa7c00e974533f68fcbbb12d06
tree17ca0e593597cb5f8b928fc62362c6e896aa877c
parent075c14f54a362f5560326fafef0da315da1ad0b0
demux/mkv: do not calculate duration for infinite clusters

It does not make sense trying to calculate the duration for something
for which there is no end, as such we should protect ourselves from
wasting our breath.

Signed-off-by: Steve Lhomme <robux4@videolabs.io>
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
modules/demux/mkv/matroska_segment.cpp