fixes presentation to media and media to presentation time conversions
fixes signalling of stream end