Updated config code for artifact-free 1080p60 streaming
Use packet flags to determine where frames end and begin instead of the packet index