avformat/segment: Pass flags to child context