mpegts: fix TS packet processing that could lead to lost data
linuxdvb: fix file processing to ensure data is passed and efficiently