add pts/dts support.