asfenc: avoid negative timestamps