Fixed and improved MPEG header sync detection
Merge back to branch