Changed the way decoder timestamps are calculated