1. fixed ts enc pmt write pn error
2. fixed ts enc pes write error