some changes in mpegts.c