add ability to get packet flags when demuxing