avformat/hls: fix both pts and dts
avformat/hls: use double to store duration