Fix reading PTSs and DTSs in libavformat, by reverting r8465.