Fixed and improved MPEG header sync detection